Show motd on connect

This commit is contained in:
Mattias Erming 2014-04-03 22:55:51 +02:00
parent 9119555f44
commit 2ca64df5d2
2 changed files with 9 additions and 2 deletions

View File

@ -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":

2
node_modules/slate-irc generated vendored

@ -1 +1 @@
Subproject commit 6f23d25c4e8163fff06c6d0751219b5d96a3916c
Subproject commit 15d97807956b2e78f654e47586abf1f9e20ccf2a