Comparison

core/usermanager.lua @ 3176:f77759710324

usermanager: Add hunk that got missed in a merge
author Matthew Wild <mwild1@gmail.com>
date Fri, 04 Jun 2010 13:53:07 +0100
parent 3167:546695e80e0a
child 3177:b932dde3bca5
comparison
equal deleted inserted replaced
3175:a7f1329c5e3c 3176:f77759710324
46 local provider = event.item; 46 local provider = event.item;
47 if host_session.users == provider then 47 if host_session.users == provider then
48 host_session.users = new_null_provider(); 48 host_session.users = new_null_provider();
49 end 49 end
50 end); 50 end);
51 end 51 host_session.users = new_null_provider(); -- Start with the default usermanager provider
52 end;
52 prosody.events.add_handler("host-activated", host_handler, 100); 53 prosody.events.add_handler("host-activated", host_handler, 100);
53 prosody.events.add_handler("component-activated", host_handler, 100); 54 prosody.events.add_handler("component-activated", host_handler, 100);
54 55
55 function is_cyrus(host) return config.get(host, "core", "sasl_backend") == "cyrus"; end 56 function is_cyrus(host) return config.get(host, "core", "sasl_backend") == "cyrus"; end
56 57