From 5cec4d8bb1688c69308fb85cbee0708ac61b152e Mon Sep 17 00:00:00 2001 From: Slendi Date: Sat, 20 Sep 2025 03:09:03 +0300 Subject: [PATCH] irc: remove duplicate NICK handler in handleLine Signed-off-by: Slendi --- main.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/main.lua b/main.lua index 0109c1a..b821766 100644 --- a/main.lua +++ b/main.lua @@ -656,14 +656,6 @@ function IrcChatView:handleLine(line) end end return - elseif command == "NICK" then -- someone changed nick; update ours if it's us - local newnick = rest:match("^:(.+)$") or rest - local oldnick = prefix:match("^([^!]+)!") or prefix - if oldnick == self._nick and newnick and #newnick > 0 then - self._nick = newnick - self:appendLine(T(_("You are now known as %1"), newnick)) - end - return elseif command == "376" or command == "422" then -- End of MOTD / No MOTD: safe to join if not yet joined if not self._registered then self._registered = true end