Signout(); should be Messenger.Signout();
code:
SendMessage('/all');
SendMessage('/close');
You don't actually need to do these, as the Signout() function does this automatically. However, the reason it isnt working is because SendMessage is a function of a ChatWnd, so using your code it should be ChatWnd.SendMessage('Message to send').
Also, instead of multiple if statements, use a select case. The following code seems to do what you want:
code:
function notify(msg){
msg = MsgPlus.RemoveFormatCodes(msg);
MsgPlus.DisplayToast('brb', msg, '');
}
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
switch (Message){
case 'brb':
notify('locking msn.');
MsgPlus.LockMessenger('True');
return '';
case '/logout':
notify('login out.');
Messenger.Signout();
}
}
Hope this helps