but doesn't it work on the same basis?
isn't "if ( containi ( said, g_swearWords[i++] ) != -1 )" the same as "if(containi(said,phrase[i]) != -1)"?
that's what i'm trying to avoid. i don't want it to find words containing a trigger word but exactly those words.
for example: lets assume the word i'm trying to set as a trigger is "muff". so if someone writes it on chat it works. but if someone writes "muffler" it works as well and it shouldn't.
i tried to switch containi with equali but then it just triggers with any word or letter written on chat. so if anyone can give it a look and suggest the solution i'd be really grateful.