mIRC Homepage
Posted By: Haze When Banned Rejoin & Del Banmask - 06/05/03 03:12 PM
can anyone correct this, it works but once a deny is placed on me, i rejoin remove the ban then disconnect mad
thx

#onban on
on @*:BAN:#:{
if ($nick == $me) { return }
if ($banmask iswm $address($me,5)) {
mode $chan -B $Banmask
chanserv unban $chan $me
.echo $colour(info) -a *** You were banned By $nick on $chan $banmask
}
}
#onban end
Posted By: Ancyker Re: When Banned Rejoin & Del Banmask - 06/05/03 03:30 PM
if ($nick == $me) { return }

what are u returning, do u mean halt?
Posted By: Collective Re: When Banned Rejoin & Del Banmask - 06/05/03 03:31 PM
Has the same effect...
Posted By: KingTomato Re: When Banned Rejoin & Del Banmask - 06/05/03 03:42 PM
Yes, return has the same effect with no parameters. Also, if your going to have a condition (though you won't notice speed) it might be easier to have the condition to catere to you.

Also, I saw you have a capital 'B' for the banmask move. In almost all cases, this is lowrcase, and most IRC servers are case-sensative.

#onban on
on @*:BAN:#:{
if ($nick != $me) {
if ($banmask iswm $address($me,5)) {
mode $chan -b $banmask
chanserv unban $chan $me
echo $colour(info) -a *** You were banned By $nick on $chan $banmask
}
}
}
#onban end
Posted By: Haze Re: When Banned Rejoin & Del Banmask - 06/05/03 03:58 PM
Thx Guys Works perfect Now Thx Alot, Its Appreciated grin
Posted By: theRat Re: When Banned Rejoin & Del Banmask - 06/05/03 04:08 PM
on !@*:BAN:#:{
if ($banmask iswm $address($me,5)) {
mode $chan -b $banmask
chanserv unban $chan $me
echo $colour(info) -a *** You were banned By $nick on $chan $banmask
}
}
Posted By: Watchdog Re: When Banned Rejoin & Del Banmask - 06/05/03 08:12 PM
Just incase someone decides to be a silly bugger and reapply the ban the second your script unsets it you also should have the /cs invite #Channel or /msg ChanServ invite #Channel commands available. That, along with /join #Channel will get you back in banned or not.

Remember that either way is just a backup measure. If you are being kicked for the fun of it then you might want to speak to your SOPs or Founder about it.
Posted By: Haze Re: When Banned Rejoin & Del Banmask - 06/05/03 08:58 PM
but when script rejoins after ban it deowner's the user who banned it, so he cant reapply the ban, thx for your input thought.thx ppl, its workin nicely now wink
Posted By: Watchdog Re: When Banned Rejoin & Del Banmask - 06/05/03 09:00 PM
Yes but if he has deop protection and a shitlist the story might be different. grin
Posted By: Haze Re: When Banned Rejoin & Del Banmask - 08/05/03 12:22 PM
#onban on
on @*:BAN:#:{
if ($nick != $me) {
if ($banmask iswm $address($me,5)) {
mode $chan -b $banmask
chanserv unban $chan $me
echo $colour(info) -a *** You were banned By $nick on $chan $banmask
}
}
}
#onban end


can sum1 add the code, so it halts if a certain gatekeeper bans me, plz laugh
© mIRC Discussion Forums