mIRC Homepage

auto unban help

Posted By: bwuser

auto unban help - 10/05/10 11:53 AM

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 } }
Posted By: Voglea

Re: auto unban help - 10/05/10 12:14 PM

on @*:BAN:#:if ($banmask iswm $ial($me)) mode # -b $v1
Posted By: asdfasdf

Re: auto unban help - 10/05/10 05:03 PM

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.
Posted By: bwuser

Re: auto unban help - 10/05/10 08:01 PM

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.
Posted By: Tomao

Re: auto unban help - 10/05/10 09:59 PM

Use the unban event. But if you use the two events together, you may get a nonstop flood.
Posted By: MeStinkBAD

Re: auto unban help - 12/05/10 11:13 PM

Use the RAWMODE event... not BAN/UNBAN
Posted By: Tomao

Re: auto unban help - 13/05/10 09:12 PM

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.
© 2021 mIRC Discussion Forums