mIRC Home    About    Download    Register    News    Help

Print Thread
#65295 25/12/03 04:38 AM
Joined: Sep 2003
Posts: 29
S
sopia Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2003
Posts: 29
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.


Keep learning everyday, you'll be a genius.
#65296 25/12/03 04:53 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
you're looking for any instance of "akum" with iswm. try istok:

if ($istok($1-, akum, 32)) /msg $chan Wa'alaikumsalam


-KingTomato
#65297 25/12/03 05:13 AM
Joined: Sep 2003
Posts: 29
S
sopia Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2003
Posts: 29
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.


Keep learning everyday, you'll be a genius.
#65298 25/12/03 05:28 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Why thank you >:D Same to you


-KingTomato

Link Copied to Clipboard