From bebe7f8392f3f1750bc196cb19bd4bfbda3310b6 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Sun, 10 Oct 2004 23:46:48 +0000 Subject: Nickserv fixes --- rbot/plugins/nickserv.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rbot/plugins') 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) -- cgit v1.2.3