hello, i'am débutant
nickserv.c :
void nsStartNickTracking(User * u)
{
NickCore *nc;
char buf[BUFSIZE];
*buf = '\0';
/* We only track identified users */
if (nick_identified(u)) {
nc = u->na->nc;
/* Release memory if needed */
if (u->nickTrack)
free(u->nickTrack);
/* Copy the nick core displayed nick to
the user structure for further checks */
u->nickTrack = sstrdup(nc->display);
const char *nc;
#define testruc "PRIVMSG #testt test: %d %s %nc" /*(example for test , problem, the real script would be that the next line)*/
/*#define testruc "CHGIDENT %Variable_nick .%variable_nick"*/ /* the real line that executes the Ident can be joined in the chan in +iI *!.*@* --- */
send_cmd(s_NickServ, testruc, u, u); (for test , good line)
}
}
I would love to learn how to return the "Char nick " in "string nick"
How he would do to "activate a chgident" as soon as someone on s'identify nickserv
Exemple:
Joins > Test (new user)
Test > he recorded his name on nickserv
Test > Nickserv identify Mot_de_passe
Test > Chgident turns directly .nick@... New code
Test > he can then join with the chan in +iI *!.*@*
System very well?
there is a problem with the "Char":
#define testruc "PRIVMSG #test test: %d %s %nc" /*(for test , problem)*/
I receive a nick returned Char:
test is 458951154
would have to "458951154" displays the username, is there anyone can learn to do that nickname?
Thank you in advance for your help
I'm sorry if you do not understand my English (google translator)