diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-11-03 21:37:34 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-11-03 21:37:34 +0100 |
commit | 13391804db9e84749580811089f4be8e52dd1e0b (patch) | |
tree | f93f991ea7aee964a0685de6e20d187d7c93cb11 /data/rbot/plugins | |
parent | ac5ab47320777b42104028f19383fdc6fc3aceb7 (diff) |
script plugin: hook on message() rather than listen()
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r-- | data/rbot/plugins/script.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |