From 474629cc9bf83c8d1de713a85c5ff36a7dcd2bf3 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 23 Oct 2006 21:21:03 +0000 Subject: Make sure the bot doesn't tell to itself --- data/rbot/plugins/keywords.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'data') 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!(//, m.sourcenick) -- cgit v1.2.3