summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-14 15:22:02 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-14 15:22:02 +0000
commit6baea82a7b371cf899a2c6710119fdfe0f7f003a (patch)
treefe4c312090bea90a5ffcd452fe5fdc1952fe7517 /lib/rbot
parent02ab47346dda4a0035afa82db4abe550cb2d838b (diff)
Make message map regexps less aggressive
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/messagemapper.rb2
1 files changed, 1 insertions, 1 deletions
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(/\$$/,'')