summaryrefslogtreecommitdiff
path: root/rbot/plugins
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2004-10-10 23:46:48 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2004-10-10 23:46:48 +0000
commitbebe7f8392f3f1750bc196cb19bd4bfbda3310b6 (patch)
treece3b31a5118fcaf6ff8bfd143e38920d0bb24621 /rbot/plugins
parenta6a4b402a4fd861799dff75d04a76e85b699dd95 (diff)
Nickserv fixes
Diffstat (limited to 'rbot/plugins')
-rw-r--r--rbot/plugins/nickserv.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/rbot/plugins/nickserv.rb b/rbot/plugins/nickserv.rb
index 2a40bae5..6067ec3e 100644
--- a/rbot/plugins/nickserv.rb
+++ b/rbot/plugins/nickserv.rb
@@ -42,11 +42,12 @@ class NickServPlugin < Plugin
when (/^register$/)
passwd = genpasswd
@bot.sendmsg "PRIVMSG", "NickServ", "REGISTER " + passwd
- @registry[nick] = passwd
+ @registry[@bot.nick] = passwd
@bot.okay m.replyto
when (/^register\s*(.*)\s*$/)
passwd = $1
@bot.sendmsg "PRIVMSG", "NickServ", "REGISTER " + passwd
+ @registry[@bot.nick] = passwd
@bot.okay m.replyto
when (/^listnicks$/)
if @bot.auth.allow?("config", m.source, m.replyto)