diff options
Diffstat (limited to 'data/rbot/plugins')
-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 |