|
|
Smil3r
|
Smil3r
|
Hey, I'm pretty new to this whole scripting thing... I've done a ban protection type script but, it works to an extent but there's somethin it's doin that it shouldn't. If I'm not opped, the script halts as it should and echo's a message saying it won't work. But if I am opped my script works as it should but still echoes the message about it not working, even tho it does?
on *:BAN:#: {
if ($me isop $chan ) && ($banmask iswm $address($me,5)) { mode $chan -ob+b $nick $banmask $address($nick,3) | kick $chan $nick I think not. Try again. }
else { echo -at Protection shizzle wont work } | halt
}
Any ideas?  Thanks
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
Vogon poet
Joined: Feb 2005
Posts: 185 |
This Should help mate:
on @*:ban:#: {
if ($banmask iswm $ial($me)) { mode $chan -ob+b $nick $banmask $address($nick,3) | kick $chan $nick I think not. Try again. }
else { echo -at Protection shizzle wont work | halt }
}
Last edited by Skeletor; 05/03/05 01:59 PM.
|
|
|
|
Smil3r
|
Smil3r
|
Hey,
Thanks for your reply... It still seems to do the same thing? :-/
[14:16:37] --› (Mode) [Hixx|Bday] has set mode [+b Smil3r!*@*] [14:16:38] --› (Mode) [Smil3r] has set mode [-ob+b Hixx|Bday Smil3r!*@* *!*Hixx@*.range81-153.btcentralplus.com] [14:16:38] Protection shizzle wont work [14:16:38] --› (Kick) [Hixx|Bday] was kicked by [Smil3r] [I think not. Try again.]
That's when I'm opped...
Then when I'm deopped:
[14:20:20] --› (Mode) [Hixx|Bday] has set mode [+b Smil3r!*@*] [14:20:31] --› (Kick) [Smil3r] was kicked by [Hixx|Bday] [coz its my bday]
The way I had it before, it done what it was meant to when i wasn't opped, but now it doesn't lol.
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
Vogon poet
Joined: Feb 2005
Posts: 185 |
make sure that your remotes are on:
/remote on
|
|
|
|
Smil3r
|
Smil3r
|
Yea they are... I'm new at the scripting scene, but not that new :P lol
|
|
|
|
Joined: Feb 2005
Posts: 185
Vogon poet
|
Vogon poet
Joined: Feb 2005
Posts: 185 |
Hehe, my bad, The other thing that might be causing the problem is another on "ban" confliction. If there isnt the i am  . It works perfectly on my side mate. Good Luck
|
|
|
|
Smil3r
|
Smil3r
|
Thanks for replying again... I had a check through all my stuff n I'm pretty sure there's no other on ban stuff. I don't understand why it's not working... Anyone else have any ideas?
Thanks Skeletor.
|
|
|
|
Joined: Dec 2002
Posts: 143
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 143 |
I'm just curious. Ban protection against what? In the network you are on, what is the impact of +b on a user who is either +v or +o.
I'm on Undernet and +b without a kick has no impact at all.
|
|
|
|
Smil3r
|
Smil3r
|
The idea is that as soon as someone sets +b that matches my address, before they get the chance to kick me... My script has already done something about it.
|
|
|
|
Joined: Dec 2002
Posts: 143
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 143 |
Then, 2 things to think of.
Quicker than /ban -k ???
What about a user making troubles while being within the same $banmask as yourself?
|
|
|
|
Smil3r
|
Smil3r
|
That is a possibilty, but the kick kicks the $nick that set the ban.. not all nicks matching the $address. So that shouldn't be a problem as far as I can see.
|
|
|
|
Joined: Dec 2002
Posts: 143
Vogon poet
|
Vogon poet
Joined: Dec 2002
Posts: 143 |
Let me better explain myself.
Since I don't know what your host look like, I'll take an exemple from an ISP I know.
Let say your address is: smil3r!fhuea@modemcable239.113-130-66.mc.videotron.ca
and I'm : joeblow!fhuea@modemcable124.24-23-70.mc.videotron.ca
One of your op bans me with the following mask: /ban *!fhuea@modemcable*.mc.videotron.ca
Your condition "$banmask iswm $address($me,5)" == true. Your script triggers, you unban me and penalize to other op. I don't believe he will appreciate it.
Last edited by gemeau50; 06/03/05 02:15 AM.
|
|
|
|
Smil3r
|
Smil3r
|
That could happen, but the chances of it happening are not that likely. Anyway, does anyone have any suggestions as to how to fix this problem I have?
Thanks.
|
|
|
|
Iori
|
Iori
|
Well really, I don't see that happening without a second event echoing that line, change it some and see if the echo is the same or the new. e.g. on *:BAN:#: {
if ($me isop $chan) && ($banmask iswm $address($me,5)) {
mode $chan -ob+b $nick $banmask $address($nick,3)
kick $chan $nick I think not. Try again.
}
else { echo -at This shouldn't show up! }
} Plus you don't need that halt at the end 
|
|
|
|
Smil3r
|
Smil3r
|
Hey, [21:04:44] --› (Mode) [Shaun] has set mode [+b Smil3r!*@*] [21:04:44] --› (Mode) [Smil3r] has set mode [-ob+b Shaun Smil3r!*@* *!*mIRC@*.ipt.aol.com] [21:04:44] This shouldn't show up! [21:04:44] --› (Kick) [Shaun] was kicked by [Smil3r] [I think not. Try again.] Still doing the same thing 
|
|
|
|
Iori
|
Iori
|
Haha I know what's going on. It's triggered from the retailate ban YOU make.  on *[color:red]![/color]:BAN:#: {
if ($me isop $chan) && ($banmask iswm $address($me,5)) {
mode $chan -ob+b $nick $banmask $address($nick,3)
kick $chan $nick I think not. Try again.
}
else { echo -at This shouldn't show up! }
}
|
|
|
|
Smil3r
|
Smil3r
|
D'oh!!
I shouldv'e seen that lol *slaps self*
Thanks for pointing that out!
Smil3r
|
|
|
|
eroxous
|
eroxous
|
Wouldnt this be defeated easily if they did a -o first?
You could get around this by having a bot that was oped that watched for you getting oped and kick/ban 's the user and re ops you.
|
|
|
|
|
|