Comparison

plugins/mod_c2s.lua @ 7330:89dd1f86a48a

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 03 Apr 2016 15:53:00 +0200
parent 7286:30b9433a9f3e
parent 7329:ab811c1bb730
child 7467:9a73c85baffe
comparison
equal deleted inserted replaced
7327:d62f0471470f 7330:89dd1f86a48a
176 end); 176 end);
177 else 177 else
178 sm_destroy_session(session, reason); 178 sm_destroy_session(session, reason);
179 conn:close(); 179 conn:close();
180 end 180 end
181 else
182 local reason = (reason and (reason.name or reason.text or reason.condition)) or reason;
183 sm_destroy_session(session, reason);
181 end 184 end
182 end 185 end
183 186
184 module:hook_global("user-deleted", function(event) 187 module:hook_global("user-deleted", function(event)
185 local username, host = event.username, event.host; 188 local username, host = event.username, event.host;