From 6baea82a7b371cf899a2c6710119fdfe0f7f003a Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 14 Feb 2007 15:22:02 +0000 Subject: Make message map regexps less aggressive --- lib/rbot/messagemapper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbot/messagemapper.rb b/lib/rbot/messagemapper.rb index 8b21ee2e..b9aad91a 100644 --- a/lib/rbot/messagemapper.rb +++ b/lib/rbot/messagemapper.rb @@ -417,7 +417,7 @@ module Irc debug "Requirements for #{name}: #{has_req.inspect}" case has_req when nil - sub = is_single ? "\\S+" : ".*" + sub = is_single ? "\\S+" : ".*?" when Regexp # Remove captures and the ^ and $ that are sometimes placed in requirement regexps sub = has_req.remove_captures.source.sub(/^\^/,'').sub(/\$$/,'') -- cgit v1.2.3