diff options
author | jesse keys <jesse@teranetworks.de> | 2008-02-14 01:38:07 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-02-14 01:56:13 +0100 |
commit | 24bb60775741d3731400f1e430ef6bf3a2e1b933 (patch) | |
tree | 01161ec2e83b021b241295e5d0c943cd7ae0d8c7 | |
parent | d317cee1d7578bab6e78f1d3cc8ea9058279175f (diff) |
lart plugin: replace "me" with sourcenick
-rw-r--r-- | data/rbot/plugins/lart.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/data/rbot/plugins/lart.rb b/data/rbot/plugins/lart.rb index 657537f0..0e995efb 100644 --- a/data/rbot/plugins/lart.rb +++ b/data/rbot/plugins/lart.rb @@ -95,6 +95,9 @@ class LartPlugin < Plugin end who = params[:who].to_s reason = params[:why] + if who == "me" + who = m.sourcenick + end if who == @bot.nick who = m.sourcenick reason = "for trying to make me lart myself" @@ -113,7 +116,8 @@ class LartPlugin < Plugin end who = params[:who].to_s reason = params[:why] - if who == m.sourcenick + if who == m.sourcenick || who == "me" + params[:who] = m.sourcenick params[:why] = "for praising himself" handle_lart(m, params) return |