# File rbot/keywords.rb, line 242 def keyword(m, key, dunno=true) unless(kw = self[key]) m.reply @bot.lang.get("dunno") if (dunno) return end response = kw.to_s response.gsub!(/<who>/, m.sourcenick) if(response =~ /^<reply>\s*(.*)/) m.reply "#$1" elsif(response =~ /^<action>\s*(.*)/) @bot.action m.replyto, "#$1" elsif(m.public? && response =~ /^<topic>\s*(.*)/) topic = $1 @bot.topic m.target, topic else m.reply "#{key} #{kw.type} #{response}" end end