Software /
code /
prosody-modules
Comparison
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 |
comparison
equal
deleted
inserted
replaced
472:f3bd98f3a3f8 | 473:99b246b37809 |
---|---|
360 commands.NAMES(session, channel) | 360 commands.NAMES(session, channel) |
361 room:hook("occupant-joined", function(nick) | 361 room:hook("occupant-joined", function(nick) |
362 session.send{from=nick.nick.."!"..nick.nick, "JOIN", channel}; | 362 session.send{from=nick.nick.."!"..nick.nick, "JOIN", channel}; |
363 end); | 363 end); |
364 room:hook("occupant-left", function(nick) | 364 room:hook("occupant-left", function(nick) |
365 jids[session.full_jid].ar_last[nick.room_jid][nick.nick] = nil; | 365 jids[session.full_jid].ar_last[nick.jid:match("^(.*)/")][nick.nick] = nil; -- ugly |
366 session.send{from=nick.nick.."!"..nick.nick, "PART", channel}; | 366 session.send{from=nick.nick.."!"..nick.nick, "PART", channel}; |
367 end); | 367 end); |
368 end); | 368 end); |
369 | 369 |
370 function commands.NAMES(session, channel) | 370 function commands.NAMES(session, channel) |