summaryrefslogtreecommitdiff
path: root/lib/rbot/ircbot.rb
diff options
context:
space:
mode:
authorMatthias Hecker <mail@apoc.cc>2020-04-14 19:50:36 +0200
committerMatthias Hecker <mail@apoc.cc>2020-04-14 19:50:36 +0200
commit3ff83c5a5938ab63b2f5635345d90c375d1172a9 (patch)
tree738b580e8e94c2e6eecb0049be80d92a9a435202 /lib/rbot/ircbot.rb
parentfda847bf583b9cc02eda341730d53887302ffe57 (diff)
fix nick renaming during connection
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r--lib/rbot/ircbot.rb2
1 files changed, 1 insertions, 1 deletions
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]
}