From 55b032137fa453dd00dde9fc5df055a3d064917d Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 5 Feb 2007 15:15:04 +0000 Subject: linkbot plugin: nick/network catchers were not greedy enough --- data/rbot/plugins/linkbot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data') 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 -- cgit v1.2.3