Are you sure you hooked it correctly? Everything looks correct to me.
Quote:
Originally Posted by Liverwiz
Code:
if(containi(message, "i love you") != -1)
use containi as to make sure its is NOT case sensitive.
containi returns -1 on failure, so just make sure that it DOES NOT EQUAL -1, rather than >= 0 -a more direct way of doing it.
|
>=0 and !=-1 are the same thing (regarding contain and containi). That's twice now. Also, he doesn't have to use case insensitive functions if he doesn't want to do so.
__________________