Software /
code /
prosody
Comparison
plugins/mod_c2s.lua @ 7329:ab811c1bb730
Merge 0.9->0.10
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 03 Apr 2016 15:52:40 +0200 |
parent | 7284:9434a220e549 |
parent | 7328:de76ded98b84 |
child | 7330:89dd1f86a48a |
child | 7466:f28fa742def3 |
comparison
equal
deleted
inserted
replaced
7326:d11701e86702 | 7329:ab811c1bb730 |
---|---|
177 end); | 177 end); |
178 else | 178 else |
179 sm_destroy_session(session, reason); | 179 sm_destroy_session(session, reason); |
180 conn:close(); | 180 conn:close(); |
181 end | 181 end |
182 else | |
183 local reason = (reason and (reason.name or reason.text or reason.condition)) or reason; | |
184 sm_destroy_session(session, reason); | |
182 end | 185 end |
183 end | 186 end |
184 | 187 |
185 module:hook_global("user-deleted", function(event) | 188 module:hook_global("user-deleted", function(event) |
186 local username, host = event.username, event.host; | 189 local username, host = event.username, event.host; |