Initial commit
This commit is contained in:
14
src/clients/irc/motd.mjs
Normal file
14
src/clients/irc/motd.mjs
Normal file
@@ -0,0 +1,14 @@
|
||||
export default client => {
|
||||
client._cmd.set("372", function (msg) { // motd_entry
|
||||
this.server.motd += `${msg.params[1]}\n`;
|
||||
}.bind(client));
|
||||
|
||||
client._cmd.set("375", function (msg) { // motd_start
|
||||
this.server.motd = `${msg.params[1]}\n`;
|
||||
}.bind(client));
|
||||
|
||||
client._cmd.set("376", function (msg) { // motd_end
|
||||
this.server.motd += `${msg.params[1]}\n`;
|
||||
this.emit("data", ["motd", this.server.motd]);
|
||||
}.bind(client));
|
||||
};
|
Reference in New Issue
Block a user