]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
bash plugin: detect (nick) together with <nick> and nick:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 22 Aug 2007 20:14:33 +0000 (20:14 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 22 Aug 2007 20:14:33 +0000 (20:14 +0000)
data/rbot/plugins/bash.rb

index d2c3c4697fbaf8674ea2d9fed09cc0570502a91f..4bb1378aa348fe5db5dac10c510b9c6342bbe40d 100644 (file)
@@ -39,7 +39,7 @@ class ::BashQuote
     text = String.new
     @text.each_line { |l|
       debug "line: #{l.inspect}"
-      cur_nick = l.match(/^\s*(&lt;.*?&gt;|.*?:)/)[1] rescue nil
+      cur_nick = l.match(/^\s*(&lt;.*?&gt;|\(.*?\)|.*?:)/)[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,"")