I need something like that: /nickserv fakemsg nick1 nick2 message
Both nicks need to be online and so the nick1 will send the message to nick2, nick1 won't know that... only nick2 will receive the message
I made a module but in privmsg command i don't know how to do:
char *cmd = moduleGetLastBuffer();
char *fn = NULL;
char *vn = NULL;
char *msg = NULL;
fn = myStrGetToken(cmd, ' ', 0);
vn = myStrGetToken(cmd, ' ', 1);
msg = myStrGetTokenRemainder(cmd, ' ', 2);
User *u1 = finduser(fn);
User *u2 = finduser(vn);
privmsg(u1->nick, u2->nick, msg);
The u2->nick is working well... the error is in the u1->nick because when i change the u1->nick to s_NickServ the code works very well