mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 23
H
Haze Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Apr 2003
Posts: 23
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

Joined: Feb 2003
Posts: 79
A
Babel fish
Offline
Babel fish
A
Joined: Feb 2003
Posts: 79
if ($nick == $me) { return }

what are u returning, do u mean halt?

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

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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


-KingTomato
Joined: Apr 2003
Posts: 23
H
Haze Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Apr 2003
Posts: 23
Thx Guys Works perfect Now Thx Alot, Its Appreciated grin

Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
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
}
}


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
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.

Joined: Apr 2003
Posts: 23
H
Haze Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Apr 2003
Posts: 23
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,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Yes but if he has deop protection and a shitlist the story might be different. grin

Joined: Apr 2003
Posts: 23
H
Haze Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Apr 2003
Posts: 23
#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