summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/nickserv.rb
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/plugins/nickserv.rb')
-rw-r--r--data/rbot/plugins/nickserv.rb11
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