Diff

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
line wrap: on
line diff
--- a/plugins/mod_c2s.lua	Sat Apr 02 17:13:12 2016 +0200
+++ b/plugins/mod_c2s.lua	Sun Apr 03 15:53:00 2016 +0200
@@ -178,6 +178,9 @@
 			sm_destroy_session(session, reason);
 			conn:close();
 		end
+	else
+		local reason = (reason and (reason.name or reason.text or reason.condition)) or reason;
+		sm_destroy_session(session, reason);
 	end
 end