Software /
code /
prosody-modules
Diff
mod_ircd/mod_ircd.in.lua @ 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 |
parent | 472:f3bd98f3a3f8 |
child | 482:9d62586e7aae |
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);