From d1717e487f9781dfc2eca55fd006191ca55725aa Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 13 Jul 2006 14:27:24 +0000 Subject: Fix a problem with not rejoining channel after disconnect and nick taken, because the JOIN commands were sent too soon. --- data/rbot/plugins/nickserv.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/data/rbot/plugins/nickserv.rb b/data/rbot/plugins/nickserv.rb index 4267bc54..ad77dff7 100644 --- a/data/rbot/plugins/nickserv.rb +++ b/data/rbot/plugins/nickserv.rb @@ -1,5 +1,8 @@ -# automatically lookup nicks in @registry and identify when asked -# TODO customize name of nickserv +# Automatically lookup nicks in @registry and identify when asked +# Takes over proper nick if required and nick is registered +# TODO allow custom IDENTIFY and GHOST names +# TODO instead of nickserv.wait it would be ideal if we could just +# set up "don't send further commands until you receive this particular message" class NickServPlugin < Plugin @@ -106,6 +109,10 @@ class NickServPlugin < Plugin do_identify nick sleep @bot.config['nickserv.wait'] @bot.nickchg nick + # We need to wait after changing nick, otherwise the server + # might refuse to execute further commangs, e.g. subsequent JOIN + # commands until the nick has changed. + sleep @bot.config['nickserv.wait'] end end -- cgit v1.2.3