Show motd on connect
This commit is contained in:
parent
9119555f44
commit
2ca64df5d2
|
@ -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":
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 6f23d25c4e8163fff06c6d0751219b5d96a3916c
|
||||
Subproject commit 15d97807956b2e78f654e47586abf1f9e20ccf2a
|
Loading…
Reference in New Issue