]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
fix nick renaming during connection
authorMatthias Hecker <mail@apoc.cc>
Tue, 14 Apr 2020 17:50:36 +0000 (19:50 +0200)
committerMatthias Hecker <mail@apoc.cc>
Tue, 14 Apr 2020 17:50:36 +0000 (19:50 +0200)
lib/rbot/ircbot.rb

index 3c5082293ebc6d1c27ac0419d2a0d7bf51b0abed..b039e05d02d6dff13a0eb49e1b1678798d565c5b 100644 (file)
@@ -584,7 +584,7 @@ class Bot
       # to inform us that our nick has been changed.
       if data[:target] == '*'
         debug "setting my connection nick to #{new}"
-        nick = new
+        @client.user.nick = new
       end
       @plugins.delegate "nicktaken", data[:nick]
     }