comparison mod_ircd/mod_ircd.in.lua @ 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
comparison
equal deleted inserted replaced
488:4885ca74515c 489:067bbff6e5bd
453 nick.presence:get_child("x","http://jabber.org/protocol/muc#user"):get_child("item").attr.nick; 453 nick.presence:get_child("x","http://jabber.org/protocol/muc#user"):get_child("item").attr.nick;
454 454
455 session.nicks_changing[newnick] = { nick.nick, (nicks[nick.nick] and nicks[nick.nick].username or "xmpp") }; return; 455 session.nicks_changing[newnick] = { nick.nick, (nicks[nick.nick] and nicks[nick.nick].username or "xmpp") }; return;
456 end 456 end
457 457
458 local self_change; 458 local self_change = false;
459 for _, data in pairs(session.nicks_changing) do 459 for _, data in pairs(session.nicks_changing) do
460 if data[1] == nick.nick then self_change = nick.nick; break; end 460 if data[1] == nick.nick then self_change = true; break; end
461 end 461 end
462 if self_change then return; end 462 if self_change then return; end
463 session.send{from=nick.nick.."!"..(nicks[nick.nick] and nicks[nick.nick].username or "xmpp"), "PART", channel}; 463 session.send{from=nick.nick.."!"..(nicks[nick.nick] and nicks[nick.nick].username or "xmpp"), "PART", channel};
464 end); 464 end);
465 end); 465 end);