Wow I really am feeling embarrassed right now... I shouldn't be making these mistakes...
js code:
function OnEvent_ChatWndSendMessage(oChatWnd, sMessage) {
if (/^\/([^\s\/]+)\s*([\s\S]*)$/.exec(sMessage) !== null) {
var _command = RegExp.$1.toLowerCase();
var _param = RegExp.$2;
switch (_command) {
case 'pmrotate':
updateMessage();
>>> return '';<<<
break;
}
}
}
The reason you need to return false is because if you do not Messenger Plus! tries to parse the command and since it isn't recognized it fails.