Added channel-wide !announce command

This commit is contained in:
rainbow napkin 2024-12-08 14:38:56 -05:00
parent 0182c6927e
commit 375cdfb3d8
10 changed files with 78 additions and 17 deletions

View file

@ -26,12 +26,12 @@ class commandPreprocessor{
//If this is a local command
if(this.commandArray[0] == '/'){
//If the command exists
if(this.argumentArray != null && this.commandProcessor[this.argumentArray[0]] != null){
if(this.argumentArray != null && this.commandProcessor[this.argumentArray[0].toLowerCase()] != null){
//Don't send it to the server
this.sendFlag = false;
//Call the command with the argument array
this.commandProcessor[this.argumentArray[0]](this.argumentArray, this.commandArray);
this.commandProcessor[this.argumentArray[0].toLowerCase()](this.argumentArray, this.commandArray);
}
}
}