From 13391804db9e84749580811089f4be8e52dd1e0b Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 3 Nov 2008 21:37:34 +0100 Subject: script plugin: hook on message() rather than listen() --- data/rbot/plugins/script.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/rbot/plugins') diff --git a/data/rbot/plugins/script.rb b/data/rbot/plugins/script.rb index eae14939..e3e718a7 100644 --- a/data/rbot/plugins/script.rb +++ b/data/rbot/plugins/script.rb @@ -48,7 +48,7 @@ class ScriptPlugin < Plugin end - def listen( m ) + def message( m ) name = m.message.split.first if m.address? and @commands.has_key?( name ) -- cgit v1.2.3