# HG changeset patch
# User Marco Cirillo <maranda@lightwitch.org>
# Date 1320193528 0
# Node ID 99b246b3780935bd61383f44dc93737956169a74
# Parent  f3bd98f3a3f82364e775c48b3b2faa1d225de7d3
mod_ircd: fixed aff/roles last data table cleaning code.

diff -r f3bd98f3a3f8 -r 99b246b37809 mod_ircd/mod_ircd.in.lua
--- 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);