diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-08-07 17:20:41 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-08-07 17:20:41 +0000 |
commit | 1b365e5063f49c88d4d15832f08345975b16e397 (patch) | |
tree | f6107d3d2f4447688c5af308ad48a216208bc79a /lib/rbot | |
parent | 7baa666805fdf3157e97d03913ea5e13b0e228a1 (diff) |
Sun Aug 07 18:20:24 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>
* stop insult plugin being used to insult the bot
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/keywords.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbot/keywords.rb b/lib/rbot/keywords.rb index daf3b40b..5de5a14a 100644 --- a/lib/rbot/keywords.rb +++ b/lib/rbot/keywords.rb @@ -421,6 +421,8 @@ module Irc end else # in channel message, not to me + # TODO option to do if(m.message =~ /^(.*)$/, ie try any line as a + # keyword lookup. if(m.message =~ /^'(.*)$/ || (!@bot.config["keyword.address"] && m.message =~ /^(.*\S)\s*\?\s*$/)) keyword m, $1, false if(@bot.auth.allow?("keyword", m.source)) elsif(@bot.config["keyword.listen"] == true && (m.message =~ /^(.*?)\s+(is|are)\s+(.*)$/)) |