diff 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
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};