From: Matthias Hecker Date: Tue, 14 Apr 2020 17:50:36 +0000 (+0200) Subject: fix nick renaming during connection X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=sidebyside;h=3ff83c5a5938ab63b2f5635345d90c375d1172a9;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git fix nick renaming during connection --- diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 3c508229..b039e05d 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -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] }