]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
plugins.rb: commands were being delegated even from ignored messages
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 14 Jul 2008 10:05:29 +0000 (12:05 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 14 Jul 2008 10:05:29 +0000 (12:05 +0200)
lib/rbot/plugins.rb

index a6d1f5430050a3d9b8010af2d974f2a09e068cfa..aefc036c634ca832a2989f9f7945b7e7656c034e 100644 (file)
@@ -943,7 +943,7 @@ module Plugins
       if method.to_sym == :privmsg
         delegate('ctcp_listen', m) if m.ctcp
         delegate('message', m)
-        privmsg(m) if m.address?
+        privmsg(m) if m.address? and not m.ignored?
         delegate('unreplied', m) unless m.replied
       else
         delegate(method, m)