From: Giuseppe Bilotta Date: Wed, 22 Aug 2007 20:14:33 +0000 (+0000) Subject: bash plugin: detect (nick) together with and nick: X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=be2371b5ae7b980eb7fee1b51bbc3c93a122b686;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git bash plugin: detect (nick) together with and nick: --- 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,"")