]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/bash.rb
bash plugin: a nick is such only if it's followed by a space
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / bash.rb
index 4bb1378aa348fe5db5dac10c510b9c6342bbe40d..cb33a4d48353076c75c66a3d9610b0681fc5158c 100644 (file)
@@ -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*(<.*?>|\(.*?\)|.*?:)\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,"")