summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/message.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/message.rb b/lib/rbot/message.rb
index df3812e0..35100802 100644
--- a/lib/rbot/message.rb
+++ b/lib/rbot/message.rb
@@ -334,7 +334,7 @@ module Irc
# the nick or core.reply_with_nick is set to false
#
def reply(string, options={})
- if @bot.config['core.reply_with_nick'] and not string =~ /\b#{@source}\b/
+ if @bot.config['core.reply_with_nick'] and not string =~ /\b#{Regexp.escape(@source.to_s)}\b/
return nickreply(string, options)
end
plainreply(string, options)