Changeset

7329:ab811c1bb730

Merge 0.9->0.10
author Kim Alvefur <zash@zash.se>
date Sun, 03 Apr 2016 15:52:40 +0200
parents 7326:d11701e86702 (current diff) 7328:de76ded98b84 (diff)
children 7330:89dd1f86a48a 7331:c8ad387aab1c
files plugins/mod_c2s.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_c2s.lua	Fri Apr 01 18:56:26 2016 +0200
+++ b/plugins/mod_c2s.lua	Sun Apr 03 15:52:40 2016 +0200
@@ -179,6 +179,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