Diff

mod_ircd/mod_ircd.lua @ 464:7e6524555ab0

mod_ircd: WiP trash removed.
author Marco Cirillo <maranda@lightwitch.org>
date Tue, 01 Nov 2011 14:39:06 +0000
parent 448:3bf6f102f1cc
line wrap: on
line diff
--- a/mod_ircd/mod_ircd.lua	Sun Oct 30 01:41:33 2011 +0200
+++ b/mod_ircd/mod_ircd.lua	Tue Nov 01 14:39:06 2011 +0000
@@ -108,9 +108,9 @@
         for _, room in pairs(session.rooms) do
                 room:leave("Disconnected");
         end
-        if jids[session.full_jid] then jids[session.full_jid] = nil end
-        if nicks[session.nick] then nicks[session.nick] = nil end
-        if sessions[conn] then sessions[conn] = nil end
+        jids[session.full_jid] = nil
+        nicks[session.nick] = nil
+        sessions[conn] = nil
 end
 
 function commands.NICK(session, nick)