Change how MPP service sends chat messages
This commit is contained in:
parent
1300babfde
commit
0780213aa1
|
@ -73,6 +73,8 @@ export class MPPAgent extends ServiceAgent<Client> {
|
|||
);
|
||||
|
||||
if (str) {
|
||||
this.logger.debug(str);
|
||||
if (typeof str == "string") {
|
||||
if (str.includes("\n")) {
|
||||
let sp = str.split("\n");
|
||||
|
||||
|
@ -87,6 +89,9 @@ export class MPPAgent extends ServiceAgent<Client> {
|
|||
} else {
|
||||
this.emit("send chat", str);
|
||||
}
|
||||
} else {
|
||||
this.emit("send chat", str);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue