summaryrefslogtreecommitdiff
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
parenta6a4b402a4fd861799dff75d04a76e85b699dd95 (diff)
Nickserv fixes
-rw-r--r--ChangeLog8
-rw-r--r--TODO1
-rw-r--r--rbot/plugins/nickserv.rb3
-rw-r--r--rbotconf/levels.rbot1
4 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f59fe521..ec1c8886 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Mon Oct 11 00:37:52 BST 2004 Tom Gilbert <tom@linuxbrit.co.uk>
+
+ * Fixes to the NickServ plugin
+
+Sat Oct 09 23:23:24 BST 2004 Tom Gilbert <tom@linuxbrit.co.uk>
+
+ * Keyword searching
+
Fri Oct 08 00:40:07 BST 2004 Tom Gilbert <tom@linuxbrit.co.uk>
* fixed insult plugin
diff --git a/TODO b/TODO
index 6c9bae1f..1cba66db 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,5 @@
o runtime language changing
+o keyword searching
o maybe runtime language configuration?
o freeze/thaw factoids (make them readonly) at higher auth
o respond to insults
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)
diff --git a/rbotconf/levels.rbot b/rbotconf/levels.rbot
index 60e02d76..2d11c2df 100644
--- a/rbotconf/levels.rbot
+++ b/rbotconf/levels.rbot
@@ -18,3 +18,4 @@
5 remind
5 keyword
15 delquote
+70 opmeh