allow sending raw commands with /

This commit is contained in:
Lephenixnoir 2023-06-17 12:40:10 +02:00
parent 1c32424193
commit c27868ff0c
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 7 additions and 2 deletions

View File

@ -269,8 +269,13 @@ let irc = new function() {
}
this.postMessage = function(channel, message) {
send("PRIVMSG", [channel, message]);
irc.onNewMessage(channel, conn.username, message);
if(message.startsWith("/")) {
sendRaw(message.substring(1));
}
else {
send("PRIVMSG", [channel, message]);
irc.onNewMessage(channel, conn.username, message);
}
}
};