summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-09-28 09:22:49 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-09-28 09:22:49 +0000
commit992d875c1a83a9fc167636fb31941034873da02b (patch)
treeb0c5b8d5c66f4bbdeadbcb4f9cda4214956f1915 /data/rbot
parentc2d9108e50ca073aa0670755682a355d8f04f697 (diff)
fix regex, make this work again
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/nickserv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/nickserv.rb b/data/rbot/plugins/nickserv.rb
index c60d93b0..a2f455c5 100644
--- a/data/rbot/plugins/nickserv.rb
+++ b/data/rbot/plugins/nickserv.rb
@@ -72,7 +72,7 @@ class NickServPlugin < Plugin
def listen(m)
return unless(m.kind_of? NoticeMessage)
- if (m.sourcenick == "NickServ" && m.message =~ /IDENTIFY <?password>?/)
+ if (m.sourcenick == "NickServ" && m.message =~ /\002IDENTIFY\002/)
debug "nickserv asked us to identify for nick #{@bot.nick}"
if @registry.has_key?(@bot.nick)
@bot.sendmsg "PRIVMSG", "NickServ", "IDENTIFY " + @registry[@bot.nick]