mIRC Home    About    Download    Register    News    Help

Print Thread
H
Haze
Haze
H
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

A
Ancyker
Ancyker
A
if ($nick == $me) { return }

what are u returning, do u mean halt?

Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
Has the same effect...

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
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

H
Haze
Haze
H
Thx Guys Works perfect Now Thx Alot, Its Appreciated grin

T
theRat
theRat
T
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
}
}

Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
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.

H
Haze
Haze
H
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

Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
Yes but if he has deop protection and a shitlist the story might be different. grin

H
Haze
Haze
H
#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


Link Copied to Clipboard