diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-22 20:14:33 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-22 20:14:33 +0000 |
commit | be2371b5ae7b980eb7fee1b51bbc3c93a122b686 (patch) | |
tree | 5f6ba75b82bde4888b16d45f7cdae939adc55b87 /data/rbot | |
parent | 25a834d62139b1be63e94974a9a6fe94b8cd7006 (diff) |
bash plugin: detect (nick) together with <nick> and nick:
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/bash.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/bash.rb b/data/rbot/plugins/bash.rb index d2c3c469..4bb1378a 100644 --- a/data/rbot/plugins/bash.rb +++ b/data/rbot/plugins/bash.rb @@ -39,7 +39,7 @@ class ::BashQuote text = String.new @text.each_line { |l| debug "line: #{l.inspect}" - cur_nick = l.match(/^\s*(<.*?>|.*?:)/)[1] rescue nil + cur_nick = l.match(/^\s*(<.*?>|\(.*?\)|.*?:)/)[1] rescue nil debug "nick: #{cur_nick.inspect}; last: #{last_nick.inspect}" if cur_nick and cur_nick == last_nick text << l.sub(cur_nick,"") |