mIRC Home    About    Download    Register    News    Help

Print Thread
Need to filter users from using a command #47754 07/09/03 11:39 AM
Joined: Mar 2003
Posts: 9
M
Mike_Healan Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Mar 2003
Posts: 9
I have a stats program that users can update with a command, but there are a couple of morons that are abusing it by running it over and over and I'd like to filter them out.

When they do the command, it runs this alias:

statson {
{ timer 1 20 run "D:\Program Files\mircstats\mircstats.exe" -log "D:\Program Files\mIRC\logs\#privacy.DixieIRC.log" -html "D:\Documents\website\chat.spywareinfo.com\stats\privacy.html" -cfg settings.cfg -req Mephisto }
{ timer 1 180 msg #privacy stats are updated @ http://chat.spywareinfo.com/stats/ }
}

I'd like to be able to filter by nick (or address if possible) so that if someone is a certain nick (or address), then it just exits without doing anything else.

It's a channel protection bot that does the script, so I can't just ignore them.

Re: Need to filter users from using a command #47755 07/09/03 12:11 PM
Joined: Jan 2003
Posts: 150
J
J0ke Offline
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
/help levels
or
if ($nick isop #) { do your stuff }
or
if ($istok(%nicks,$nick,44)) { do your stuff }

it's all in mIRC.hlp


Go ahead, jump. 100,000 lemmings can't be wrong.