diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-08-07 17:20:41 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-08-07 17:20:41 +0000 |
commit | 1b365e5063f49c88d4d15832f08345975b16e397 (patch) | |
tree | f6107d3d2f4447688c5af308ad48a216208bc79a /data | |
parent | 7baa666805fdf3157e97d03913ea5e13b0e228a1 (diff) |
Sun Aug 07 18:20:24 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>
* stop insult plugin being used to insult the bot
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/insult.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |