WallStreetWolf
Member
Hello !
I have small problem with function send msg
the code:
for ev.mode 2 - works fine, send message on chatChannel but I'd like to set it to 1 for sending message for client, log:
I know that this script is for old type of sinusbot, but I hope someone will help me to solve that case
I have small problem with function send msg
the code:
Code:
function send_msg(msg, ev) {
var mode = (typeof ev !== 'undefined') ? ev.mode : 2;
switch (mode) {
case 1:
sinusbot.chatPrivate(ev.clientId, msg);
break;
case 2:
sinusbot.chatChannel(msg);
break;
default:
sinusbot.chatServer(msg);
break;
}
for ev.mode 2 - works fine, send message on chatChannel but I'd like to set it to 1 for sending message for client, log:
Code:
Cannot access member 'clientId' of undefined at send_msg
I know that this script is for old type of sinusbot, but I hope someone will help me to solve that case