mIRC Home    About    Download    Register    News    Help

Print Thread
#89243 05/07/04 01:59 AM
Joined: Feb 2004
Posts: 2
R
Ransyth Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
R
Joined: Feb 2004
Posts: 2
How would i go about createing a script that checks unbans to see if they wildcard match ones in a hashtable and if they do reban them?

#89244 05/07/04 06:10 AM
Joined: Nov 2003
Posts: 228
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
Code:
on @:UNBAN:#channel: {
  if ($hmatch(banlist,$banmask,1)) { .ban $chan $banmask }
}


Note: this code is untested but you should get the idea.

#89245 10/07/04 05:23 PM
Joined: Jun 2004
Posts: 17
T
Pikka bird
Offline
Pikka bird
T
Joined: Jun 2004
Posts: 17
I made this complete script.

On @akick:join:#:mode # -o $nick | ban # $wildsite | kick # $nick Auto kicked.
menu nicklist {
auto kick
.Add
..add host:/auser akick $address($$1,2) | kick # $$1
..add ident:/auser akick $address($$1,3) | kick # $$1
.Del
..delete all:/rlevel akick
..delete one:/ruser akick $$?="hostname:"
.list:/ulist akick
}


Link Copied to Clipboard