mIRC Home    About    Download    Register    News    Help

Print Thread
#17856 02/04/03 09:36 PM
Joined: Mar 2003
Posts: 63
N
NiCk2 Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Mar 2003
Posts: 63
To do a bad word dectetor, I have a list of words to detect so I have put them in a .ini file.
It looks like this :
on *:text:*:#:{
...
if word isin $strip($1-) { ... }
...
}
The only problem is that this doesn't work with masks such as *fu*k* for example. The only way to detect *fu*k* seems to be :
on *:text:*fu*k*:#:{
...
}
Do you know a way to detect masks such as *fu*k* without having to use the second solution ?
Thank you in advance for any kind and helpful response smile

#17857 02/04/03 09:51 PM
Joined: Dec 2002
Posts: 395
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
Use 'iswm' instead of 'isin'.

if word iswm $strip($1-) { ... }


Link Copied to Clipboard