comparison plugins/mod_auth_anonymous.lua @ 4845:f56eeff93847

Merge with backout
author Matthew Wild <mwild1@gmail.com>
date Fri, 11 May 2012 01:46:41 +0100
parents 3d1ca811eee3
children 3bc3498df0a0
comparison
equal deleted inserted replaced
4843:d91dda67647a 4845:f56eeff93847
50 end 50 end
51 return username, host, datastore, data; 51 return username, host, datastore, data;
52 end 52 end
53 53
54 if module:get_option_boolean("disallow_s2s", true) then 54 if module:get_option_boolean("disallow_s2s", true) then
55 hosts[module.host].disallow_s2s = true;
56 module:hook("route/remote", function (event) 55 module:hook("route/remote", function (event)
57 return false; -- Block outgoing s2s from anonymous users 56 return false; -- Block outgoing s2s from anonymous users
58 end, 300); 57 end, 300);
59 end 58 end
60 59