Show motd on connect
This commit is contained in:
parent
9119555f44
commit
2ca64df5d2
@ -11,6 +11,7 @@ var networks = new models.Networks;
|
|||||||
var events = [
|
var events = [
|
||||||
"join",
|
"join",
|
||||||
"kick",
|
"kick",
|
||||||
|
"motd",
|
||||||
"message",
|
"message",
|
||||||
"names",
|
"names",
|
||||||
"nick",
|
"nick",
|
||||||
@ -161,7 +162,13 @@ function event(event, data) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "kick":
|
case "kick":
|
||||||
console.log(event);
|
break;
|
||||||
|
|
||||||
|
case "motd":
|
||||||
|
var messages = data[0].motd;
|
||||||
|
messages.forEach(function(msg) {
|
||||||
|
channels.first().addMessage({message: msg});
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "message":
|
case "message":
|
||||||
|
2
node_modules/slate-irc
generated
vendored
2
node_modules/slate-irc
generated
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 6f23d25c4e8163fff06c6d0751219b5d96a3916c
|
Subproject commit 15d97807956b2e78f654e47586abf1f9e20ccf2a
|
Loading…
Reference in New Issue
Block a user