summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-10-23 21:21:03 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-10-23 21:21:03 +0000
commit474629cc9bf83c8d1de713a85c5ff36a7dcd2bf3 (patch)
tree8f012ee60302cf57f44304e1142ab9e0b16095a1 /data/rbot
parentd91186b48d1a3fd00c06782f89b76f95eeea9896 (diff)
Make sure the bot doesn't tell to itself
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/keywords.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/rbot/plugins/keywords.rb b/data/rbot/plugins/keywords.rb
index dc7171ed..dc8d4ac6 100644
--- a/data/rbot/plugins/keywords.rb
+++ b/data/rbot/plugins/keywords.rb
@@ -342,6 +342,10 @@ class Keywords < Plugin
m.reply @bot.lang.get("dunno_about_X") % key
return
end
+ if target == @bot.nick
+ m.reply "very funny, trying to make me tell something to myself"
+ return
+ end
response = kw.to_s
response.gsub!(/<who>/, m.sourcenick)