Changing own nick now also updates server users.
authorplugd <plugd@thelambdalab.xyz>
Mon, 20 May 2024 10:52:09 +0000 (12:52 +0200)
committerplugd <plugd@thelambdalab.xyz>
Sun, 26 May 2024 19:14:04 +0000 (21:14 +0200)
murk.el

diff --git a/murk.el b/murk.el
index 9ca5e2a..1903a33 100644 (file)
--- a/murk.el
+++ b/murk.el
@@ -706,8 +706,10 @@ The head of this list is always the current context.")
       ((and "NICK"
             (guard (equal (murk-connection-nick server)
                           (murk-msg-src msg))))
-       (let ((new-nick (car (murk-msg-params msg))))
+       (let ((new-nick (car (murk-msg-params msg)))
+             (old-nick (murk-connection-nick server)))
          (murk-set-connection-nick server new-nick)
+         (murk-rename-server-user server old-nick new-nick)
          (murk-display-notice nil "Nick set to " new-nick " on " server)))
 
       ("NICK"