Changeset

473:99b246b37809

mod_ircd: fixed aff/roles last data table cleaning code.
author Marco Cirillo <maranda@lightwitch.org>
date Wed, 02 Nov 2011 00:25:28 +0000
parents 472:f3bd98f3a3f8
children 474:942738953ff3
files mod_ircd/mod_ircd.in.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_ircd/mod_ircd.in.lua	Wed Nov 02 00:03:59 2011 +0000
+++ b/mod_ircd/mod_ircd.in.lua	Wed Nov 02 00:25:28 2011 +0000
@@ -362,7 +362,7 @@
 		session.send{from=nick.nick.."!"..nick.nick, "JOIN", channel};
 	end);
 	room:hook("occupant-left", function(nick)
-		jids[session.full_jid].ar_last[nick.room_jid][nick.nick] = nil;
+		jids[session.full_jid].ar_last[nick.jid:match("^(.*)/")][nick.nick] = nil; -- ugly
 		session.send{from=nick.nick.."!"..nick.nick, "PART", channel};
 	end);
 end);