]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/auth.rb
Fix stupid bug introduced with the new debugging messages. switch to kind_of? instead...
[user/henk/code/ruby/rbot.git] / lib / rbot / core / auth.rb
index 9a30dc0a90c9e42a06d4b5afc67300eea4f9476a..228f76a8d78413b75e2979749e1db060c427122d 100644 (file)
@@ -85,7 +85,7 @@ class AuthModule < CoreBotModule
 \r
   def auth_set(m, params)\r
     cmds, locs, warns = parse_args(params[:args])\r
-    errs = warns.select { |w| w.class <= Exception }\r
+    errs = warns.select { |w| w.kind_of?(Exception) }\r
     unless errs.empty?\r
       m.reply "couldn't satisfy your request: #{errs.join(',')}"\r
       return\r