]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
script plugin: hook on message() rather than listen()
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 3 Nov 2008 20:37:34 +0000 (21:37 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 3 Nov 2008 20:37:34 +0000 (21:37 +0100)
data/rbot/plugins/script.rb

index eae1493956192ab65e7f7cf25e12df23f5102143..e3e718a70546350808ec410c4eb2abe1b17e09e8 100644 (file)
@@ -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 )