Now I'm not sure if anyone else has ever run in to a problem such as this, however, I would like to show you the code and an example of the output for that section of code to see if it's a possibility, at least it's something that I have never personally run in to before now...
Code:
else if( !strcmp(buff, "MODE") ) {
strGet(buf, " ", 3, buff);
strGet(buf, " ", 4, btmp);
strRem(btmp, ":", 1);
printf("From: %s\n", From);
printf("Mode: %s\n", btmp);
printf("On: %s\n", buff);
if( !strcmp(From, buff) ) {
sprintf(buff, "%s sets %s on themself.", From, btmp);
// fprintf(stdout, "%s sets mode %s on themself.\n", From, btmp);
printf("%s\n", buff);
}
else {
sprintf(buff, "%s sets mode %s on %s.", From, btmp, buff);
printf("%s\n", buff);
}
// TODO: store mode information as appropriate
return(0);
}
A sample output:
Code:
From: Bot
Mode: +x
On: Bot
on themself.
For some reason all of the variables produce the proper values, but the printf() statements in the control statements are not displaying the entire message. Does anyone have a reason as to why this could be happening? I have verified also that the strGet() and strRem() calls are doing exactly as they should be (with the first printf() statements) and so this is not the reason.
Thanks in advance for any assistance.