Permalink
Browse files

Switch dependency to github in package.json.

Add handling for netError event in server. Log on client to verify that it's working.
  • Loading branch information...
akavlie committed Jan 20, 2012
1 parent 6c11d43 commit ccf8a57a72dc1242ad7908b9351d482411e98559
Showing with 11 additions and 2 deletions.
  1. +8 −0 assets/js/client.js
  2. +2 −1 lib/irchandler.js
  3. +1 −1 package.json
View
@@ -91,6 +91,14 @@ $(function() {
channel.set({topic: data.topic});
});
+ irc.socket.on('error', function(data) {
+ console.log(data.messsage);
+ });
+
+ irc.socket.on('netError', function(data) {
+ console.log(data);
+ });
+
irc.handleCommand = function(commandText) {
switch(commandText[0]) {
case '/join':
View
@@ -13,7 +13,8 @@ var irchandler = exports.irchandler = function(socket) {
'pm': ['nick', 'text'],
'registered': ['message'],
'motd': ['motd'],
- 'error': ['message']
+ 'error': ['message'],
+ 'netError': ['message'],
};
socket.on('connect', function(data) {
View
@@ -15,7 +15,7 @@
"express": "",
"jade": "",
"connect-assets": "",
- "irc": "",
+ "irc": "git://github.com/martynsmith/node-irc.git",
"socket.io": ""
}
}

0 comments on commit ccf8a57

Please sign in to comment.