summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-05 15:15:04 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-05 15:15:04 +0000
commit55b032137fa453dd00dde9fc5df055a3d064917d (patch)
treea234bb1a58c674d363253ea38fc7645cb93db185 /data
parent27f21d8663d1cf7cf4e264aa4e68145cc89cce00 (diff)
linkbot plugin: nick/network catchers were not greedy enough
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/linkbot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/linkbot.rb b/data/rbot/plugins/linkbot.rb
index 624d241d..082cbd80 100644
--- a/data/rbot/plugins/linkbot.rb
+++ b/data/rbot/plugins/linkbot.rb
@@ -34,7 +34,7 @@ class LinkBot < Plugin
return unless m.kind_of?(PrivMessage)
# Now we know that _m_ is a PRIVMSG from a linkbot. Let's split it
# in nick, network, message
- if m.message.match(/^\((\w+?)@(\w+?)\)\s+(.*)$/)
+ if m.message.match(/^\((\S+?)@(\S+?)\)\s+(.*)$/)
new_nick = $1
network = $2
message = $3