:^)
This commit is contained in:
parent
b62a4c081c
commit
af3f00a704
|
@ -76,7 +76,10 @@ export class irc extends EventEmitter {
|
|||
logger.debug(`(${this.network}) out: ${data}`);
|
||||
}
|
||||
sendmsg(mode, recipient, msg) {
|
||||
msg.split(/\r?\n/).forEach(e => {
|
||||
msg = msg.split(/\r?\n/);
|
||||
if(msg.length > 6)
|
||||
return false;
|
||||
msg.forEach(e => {
|
||||
this.send( msgmodes[mode].replace("{recipient}", recipient).replace("{msg}", e) );
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user