summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-08-22 21:52:18 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-08-22 21:52:18 +0000
commitd432b9e11936eebb379c6f589879dd8d40ac7163 (patch)
tree9f4882a5d18348a3a693a58dbe036e7a173bb8c6 /data
parent5314582f0fca77520d73ce21f9d05a10f10daa6b (diff)
bash plugin: a nick is such only if it's followed by a space
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/bash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/bash.rb b/data/rbot/plugins/bash.rb
index 4bb1378a..cb33a4d4 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*(&lt;.*?&gt;|\(.*?\)|.*?:)/)[1] rescue nil
+ cur_nick = l.match(/^\s*(&lt;.*?&gt;|\(.*?\)|.*?:)\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,"")