]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/core.rb
Fix stupid bug introduced with the new debugging messages. switch to kind_of? instead...
[user/henk/code/ruby/rbot.git] / lib / rbot / core / core.rb
index 178675b1fabc758a516542ab863b0ca06ec58763..feff7491b058f6445e13ffba4cb6f1b83ff9b667 100644 (file)
@@ -5,7 +5,7 @@
 class CoreModule < CoreBotModule\r
 \r
   def listen(m)\r
-    return unless m.class <= PrivMessage\r
+    return unless m.kind_of?(PrivMessage)\r
     if(m.private? && m.message =~ /^\001PING\s+(.+)\001/)\r
       @bot.notice m.sourcenick, "\001PING #$1\001"\r
       @bot.irclog "@ #{m.sourcenick} pinged me"\r