summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-05-20 21:42:48 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-05-20 21:42:48 +0200
commit6c1022d9ef02ae01b1258a388ecab150241a5f69 (patch)
tree9328c5615fde37ed371f40be3771ff3b859dbeac /data/rbot
parent3ad64f57384505da2f25e1778f6afb7414c67ff5 (diff)
botsnack plugin: restore 0.9.10 code now that reply_with_nick has been fixed
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/botsnack.rb16
1 files changed, 6 insertions, 10 deletions
diff --git a/data/rbot/plugins/botsnack.rb b/data/rbot/plugins/botsnack.rb
index b391bb96..54eb88f4 100644
--- a/data/rbot/plugins/botsnack.rb
+++ b/data/rbot/plugins/botsnack.rb
@@ -2,7 +2,7 @@
#++
#
# :title: botsnack - give your bot some love
-# :version: 1.0
+# :version: 1.0a
#
# Author:: Jan Wikholm <jw@jw.fi>
#
@@ -23,15 +23,11 @@ class BotsnackPlugin < Plugin
def snack(m, params)
- # Below is the 0.9.10 version, but I changed it because it would conflict
- # with config params [core.reply_with_nick true] and [core.nick_postfix ,]
- # resulting in:
- # <@unfo-> .botsnack
- # <@rrBot> unfo-, unfo-: thanks :)
- # OLD: m.reply @bot.lang.get("thanks_X") % m.sourcenick if(m.public?)
- # OLD: m.reply @bot.lang.get("thanks") if(m.private?)
-
- m.reply @bot.lang.get("thanks")
+ if m.public?
+ m.reply @bot.lang.get("thanks_X") % m.sourcenick
+ else
+ m.reply @bot.lang.get("thanks")
+ end
end
end