diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-14 15:22:02 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-14 15:22:02 +0000 |
commit | 6baea82a7b371cf899a2c6710119fdfe0f7f003a (patch) | |
tree | fe4c312090bea90a5ffcd452fe5fdc1952fe7517 /lib/rbot | |
parent | 02ab47346dda4a0035afa82db4abe550cb2d838b (diff) |
Make message map regexps less aggressive
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/messagemapper.rb | 2 |
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(/\$$/,'') |