From 1b365e5063f49c88d4d15832f08345975b16e397 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Sun, 7 Aug 2005 17:20:41 +0000 Subject: Sun Aug 07 18:20:24 BST 2005 Tom Gilbert * stop insult plugin being used to insult the bot --- data/rbot/plugins/insult.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'data') diff --git a/data/rbot/plugins/insult.rb b/data/rbot/plugins/insult.rb index 5f0384e8..f610efc0 100644 --- a/data/rbot/plugins/insult.rb +++ b/data/rbot/plugins/insult.rb @@ -233,7 +233,11 @@ class InsultPlugin < Plugin elsif(m.params =~ /^me$/) prefix = "you are " else - prefix = "#{m.params} is " + who = m.params + if (who == @bot.nick) + who = m.sourcenick + end + prefix = "#{who} is " end insult = generate_insult @bot.say msgto, prefix + insult + suffix -- cgit v1.2.3