# File rbot/keywords.rb, line 267 def keyword_tell(m, target, key) unless(kw = self[key]) @bot.say m.sourcenick, @bot.lang.get("dunno_about_X") % key return end response = kw.to_s response.gsub!(/<who>/, m.sourcenick) if(response =~ /^<reply>\s*(.*)/) @bot.say target, "#{m.sourcenick} wanted me to tell you: (#{key}) #$1" m.reply "okay, I told #{target}: (#{key}) #$1" elsif(response =~ /^<action>\s*(.*)/) @bot.action target, "#$1 (#{m.sourcenick} wanted me to tell you)" m.reply "okay, I told #{target}: * #$1" else @bot.say target, "#{m.sourcenick} wanted me to tell you that #{key} #{kw.type} #{response}" m.reply "okay, I told #{target} that #{key} #{kw.type} #{response}" end end