mIRC Home    About    Download    Register    News    Help

Print Thread
#221203 10/05/10 11:53 AM
Joined: Jul 2006
Posts: 248
B
bwuser Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Jul 2006
Posts: 248
I made a quick auto unban script @ work. Can't test it now so can somebody tell me if it's fine?

Code:
on 1:Ban:#test: { if ($banmask iswm $address($me,5)) { .mode $chan -b $banmask } }

bwuser #221204 10/05/10 12:14 PM
Joined: Nov 2009
Posts: 81
V
Babel fish
Offline
Babel fish
V
Joined: Nov 2009
Posts: 81
on @*:BAN:#:if ($banmask iswm $ial($me)) mode # -b $v1

bwuser #221209 10/05/10 05:03 PM
Joined: Dec 2008
Posts: 95
A
Babel fish
Offline
Babel fish
A
Joined: Dec 2008
Posts: 95
You should've just tested it whenever you can instead of asking if it's fine here.
Later you could've asked for help if anything was not fine and you had trouble fixing it.

To answer your question, though, generally it's fine
as long as you keep in mind that it doesn't make sure that you have the power to unban yourself on the channel.

Joined: Jul 2006
Posts: 248
B
bwuser Offline OP
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Jul 2006
Posts: 248
Oki doki, thanks.

I'd like to have the same script only with excepts. So if someone removes me from the list it'll add me automatically again.

Didn't figure this one out yet so help would be appreciated.

bwuser #221217 10/05/10 09:59 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Use the unban event. But if you use the two events together, you may get a nonstop flood.

Tomao #221259 12/05/10 11:13 PM
Joined: Apr 2003
Posts: 342
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
Use the RAWMODE event... not BAN/UNBAN


Beware of MeStinkBAD! He knows more than he actually does!
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Originally Posted By: MeStinkBAD
Use the RAWMODE event... not BAN/UNBAN
Code:
on !@*:rawmode:#: {
  if (($regex($1,/([+][^\-]*b)/)) && ($2 == $me)) {
    mode # $replace($regml(1),$chr(43),$chr(45)) $2
  }
  elseif (($regex($1,/([-][^\+]*b)/)) && ($2 == $me)) {
    mode # $replace($regml(1),$chr(45),$chr(43)) $2 
  }
}
I suppose you're right.


Link Copied to Clipboard