diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-13 14:27:24 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-13 14:27:24 +0000 |
commit | d1717e487f9781dfc2eca55fd006191ca55725aa (patch) | |
tree | 85bec3663b3b31727f77476b30e4ec78792f6d20 /data | |
parent | ec67cbca6543d4eb7a95e83fb10f340383bb47e7 (diff) |
Fix a problem with not rejoining channel after disconnect and nick taken, because the JOIN commands were sent too soon.
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/nickserv.rb | 11 |
1 files 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 |