<For moderators: please move this thread to the appropriate forum if it is not on the appropriate forum>
Hi!
I have made an command and an action for the command but when i try the command in an chat window the action works and all, i get an Messenger Plus toast but i also get the invalid command prompt which tells me something about "invalid command... if you weren't intending on writing an command start with double-slash '//"
so i need help to get rid of that invalid command prompt, here is my code:
code:
//vars
var appenable = "no";
function OnEvent_ChatWndSendMessage(ChatWnd, sMessage)
{
if(sMessage=="/shortopener enable") {
appenable = "yes";
return(MsgPlus.DisplayToast("Shortopener :: Enable", "Shortopener enabled!"));
}
}
function OnGetScriptCommands()
{
var Commands = "<ScriptCommands>";
Commands += "<Command>";
Commands += "<Name>shortopener enable</Name>";
Commands += "<Description>Shortopener \n Enables the shortopener, must be written before starting to use Shortopener</Description>";
Commands += "</Command>";
Commands += "</ScriptCommands>";
return Commands;
}
its not a really big thing but its really irritating when you want to type in the command and get the unnecessary prompt when the command does its work so please help me