# HG changeset patch # User Kim Alvefur # Date 1459691560 -7200 # Node ID ab811c1bb7304070ba9e24f4ca8ce78a943b2a4c # Parent d11701e86702e9e6d3f36265c7ce559284eab7b2# Parent de76ded98b842f92bf7aef0c68aee18b293073d3 Merge 0.9->0.10 diff -r d11701e86702 -r ab811c1bb730 plugins/mod_c2s.lua --- 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