diff --git a/lib/irc.js b/lib/irc.js
index <HASH>..<HASH> 100644
--- a/lib/irc.js
+++ b/lib/irc.js
@@ -551,10 +551,18 @@ function Client(server, nick, opt) {
             case "PING":
                 self.send("PONG", message.args[0]);
                 break;
+            case "QUIT":
+                if ( self.opt.debug )
+                    sys.log("QUIT: " + message.prefix + " " + message.args.join(" "));
+                break;
             case "NOTICE":
                 if ( self.opt.debug )
                     sys.log("NOTICE: " + message.args.join(" "));
                 break;
+            case "MODE":
+                if ( self.opt.debug )
+                    sys.log("MODE:" + message.args[0] + " sets mode: " + message.args[1]);
+                break;
             case "rpl_motdstart":
                 self.motd = message.args[1] + "\n";
                 break;
Added QUIT and MODE to handled messages