From da4d97f0652bddcee269b6d99863f21a1021056c Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 15 Feb 2007 13:58:15 +0000 Subject: New unreplied() method for plugins that want to handle PRIVMSGs unreplied by any other plugin. Use it in the keywords plugin --- data/rbot/plugins/keywords.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/rbot') diff --git a/data/rbot/plugins/keywords.rb b/data/rbot/plugins/keywords.rb index 0c1b3526..855bfe6a 100644 --- a/data/rbot/plugins/keywords.rb +++ b/data/rbot/plugins/keywords.rb @@ -489,8 +489,8 @@ class Keywords < Plugin end end - def listen(m) - return if m.address? + def unreplied(m) + # return if m.address? # in channel message, not to me # TODO option to do if(m.message =~ /^(.*)$/, ie try any line as a # keyword lookup. -- cgit v1.2.3