mIRC Homepage
Posted By: sopia on text - 25/12/03 04:38 AM
I have this code in my remote:
On *:text:*:#:{
if ($+(*,akum,*) iswm $1-) { msg $chan Wa'alaikumsalam }
if ($+(*,a'kum,*) iswm $1-) { msg $chan Wa'alaikum salam }
}
The problem is when a user type in the word "akumalas" the remote responded to that word. To my understanding that other than the word "akum", the remote should not respond.
What is the problem with the code? Help please.
Posted By: KingTomato Re: on text - 25/12/03 04:53 AM
you're looking for any instance of "akum" with iswm. try istok:

if ($istok($1-, akum, 32)) /msg $chan Wa'alaikumsalam
Posted By: sopia Re: on text - 25/12/03 05:13 AM
Thank you very much kingtomato, it's working perfectly now and merry christmas to you, hope you have an enjoyable christmas and a happy new year.
Posted By: KingTomato Re: on text - 25/12/03 05:28 AM
Why thank you >:D Same to you
© mIRC Discussion Forums