/nick command bugfix master
authorplugd <plugd@thelambdalab.xyz>
Thu, 31 Aug 2023 20:27:18 +0000 (22:27 +0200)
committerplugd <plugd@thelambdalab.xyz>
Thu, 31 Aug 2023 20:27:18 +0000 (22:27 +0200)
lurk.el

diff --git a/lurk.el b/lurk.el
index 1e09ee1..52ee3b6 100644 (file)
--- a/lurk.el
+++ b/lurk.el
@@ -990,8 +990,8 @@ in which case they match anything.")
     (if new-nick
         (if (lurk-connected-p)
             (lurk-send-msg (lurk-msg nil nil "NICK" new-nick))
-          (setq lurk-nick nick)
-          (lurk-display-notice nil "Set default nick to '" nick "'."))
+          (setq lurk-nick new-nick)
+          (lurk-display-notice nil "Set default nick to '" lurk-nick "'."))
       (lurk-display-notice nil "Current nick: " lurk-nick))))
 
 (defun lurk-command-me (params)