mIRC Home    About    Download    Register    News    Help

Print Thread
Need help with script. #259612 03/01/17 01:44 PM
Joined: Dec 2016
Posts: 16
H
Hazman Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Dec 2016
Posts: 16
Anyone have a script that can target a user who uses a specific word in a sentence and time them out for certain amount of seconds?
on *:TEXT:word:#channel: {
msg $chan /timeout $nick 600
}
this one doesn't work when they use the key word in a sentence. frown

Re: Need help with script. [Re: Hazman] #259613 03/01/17 01:58 PM
Joined: Feb 2015
Posts: 243
O
OrFeAsGr Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
If it's a certain word and not a list of words you are in the right way.. Just a minor change...
Code:
on *:TEXT:*word*:#channel: {
msg $chan /timeout $nick 600 
}

Your script would trigger when the message was single word.

Last edited by OrFeAsGr; 03/01/17 01:58 PM.
Re: Need help with script. [Re: OrFeAsGr] #259614 03/01/17 02:02 PM
Joined: Dec 2016
Posts: 16
H
Hazman Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Dec 2016
Posts: 16
Thanks I appreciate it smile