Mercurial > prosody-modules
changeset 489:067bbff6e5bd
mod_ircd: minor typo clean up.
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Fri, 02 Dec 2011 04:29:06 +0000 |
parents | 4885ca74515c |
children | 00b77a9f2d5f |
files | mod_ircd/mod_ircd.in.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_ircd/mod_ircd.in.lua Fri Dec 02 04:24:16 2011 +0000 +++ b/mod_ircd/mod_ircd.in.lua Fri Dec 02 04:29:06 2011 +0000 @@ -455,9 +455,9 @@ session.nicks_changing[newnick] = { nick.nick, (nicks[nick.nick] and nicks[nick.nick].username or "xmpp") }; return; end - local self_change; + local self_change = false; for _, data in pairs(session.nicks_changing) do - if data[1] == nick.nick then self_change = nick.nick; break; end + if data[1] == nick.nick then self_change = true; break; end end if self_change then return; end session.send{from=nick.nick.."!"..(nicks[nick.nick] and nicks[nick.nick].username or "xmpp"), "PART", channel};