thanks dweia!
Is there anyone who help can me further with this problem?
The while for checking for badwords, I now got this part:
char badwords[20][20];
ifstream file_bwchk...
Type: Posts; User: lode
thanks dweia!
Is there anyone who help can me further with this problem?
The while for checking for badwords, I now got this part:
char badwords[20][20];
ifstream file_bwchk...
Ah thanks! I was a bit confused by the *iter != '\0'; part (i didn't know what '\0' meant) so I didn't read the rest quite well :$
I tried many different ways of making this while, but didn't manage to get it working, accept for this last one you provided. I now got this part:
char badwords[20][20];
ifstream file_bwchk...
Thanks Dweia! This works ok now.
Only I haven't got much of an idea about how to check this in a loop. The tutorials don't provide me the information I'm looking for (or I'm not looking in a good...
Thanks for your answers!
I now use this piece of code:
char* msg = aw_string
(AW_CHAT_MESSAGE);
if (!strstr (msg,"badword") == 0) {
Hello everybody,
I have made an activeworlds bot which have to react on chat strings.
It has to filter badwords out. The activeworlds software prevents to do that realtime, but reacting on...