]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/keywords.rb
Make sure the bot doesn't tell to itself
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / keywords.rb
index dc7171ed0f528a864d2fc58f8a9b594d075bdbde..dc8d4ac65c9733eb4ec0f5caed7aeffbd81a8dc8 100644 (file)
@@ -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)