From 6c1022d9ef02ae01b1258a388ecab150241a5f69 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 20 May 2008 21:42:48 +0200 Subject: botsnack plugin: restore 0.9.10 code now that reply_with_nick has been fixed --- data/rbot/plugins/botsnack.rb | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'data/rbot') 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 # @@ -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 -- cgit v1.2.3