diff --git a/lib/server.js b/lib/server.js index 117c6ea..9f521d8 100644 --- a/lib/server.js +++ b/lib/server.js @@ -11,6 +11,7 @@ var networks = new models.Networks; var events = [ "join", "kick", + "motd", "message", "names", "nick", @@ -161,7 +162,13 @@ function event(event, data) { break; case "kick": - console.log(event); + break; + + case "motd": + var messages = data[0].motd; + messages.forEach(function(msg) { + channels.first().addMessage({message: msg}); + }); break; case "message": diff --git a/node_modules/slate-irc b/node_modules/slate-irc index 6f23d25..15d9780 160000 --- a/node_modules/slate-irc +++ b/node_modules/slate-irc @@ -1 +1 @@ -Subproject commit 6f23d25c4e8163fff06c6d0751219b5d96a3916c +Subproject commit 15d97807956b2e78f654e47586abf1f9e20ccf2a