mIRC Home    About    Download    Register    News    Help

Print Thread
#113451 05/03/05 10:55 AM
Joined: Jan 2005
Posts: 20
S
Smil3r Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 20
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?

Code:
 
 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? smirk


Thanks

#113452 05/03/05 01:55 PM
Joined: Feb 2005
Posts: 185
S
Vogon poet
Offline
Vogon poet
S
Joined: Feb 2005
Posts: 185
This Should help mate:

Code:
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.

sub-zero.homeip.net:6667

#113453 05/03/05 02:22 PM
Joined: Jan 2005
Posts: 20
S
Smil3r Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 20
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.

#113454 05/03/05 02:24 PM
Joined: Feb 2005
Posts: 185
S
Vogon poet
Offline
Vogon poet
S
Joined: Feb 2005
Posts: 185
make sure that your remotes are on:

/remote on


sub-zero.homeip.net:6667

#113455 05/03/05 02:35 PM
Joined: Jan 2005
Posts: 20
S
Smil3r Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 20

Yea they are... I'm new at the scripting scene, but not that new :P lol

#113456 05/03/05 03:30 PM
Joined: Feb 2005
Posts: 185
S
Vogon poet
Offline
Vogon poet
S
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 confused. It works perfectly on my side mate.

Good Luck


sub-zero.homeip.net:6667

#113457 05/03/05 04:38 PM
Joined: Jan 2005
Posts: 20
S
Smil3r Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 20

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.

#113458 05/03/05 05:42 PM
Joined: Dec 2002
Posts: 145
G
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
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.

#113459 05/03/05 05:54 PM
Joined: Jan 2005
Posts: 20
S
Smil3r Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 20

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.

#113460 05/03/05 06:34 PM
Joined: Dec 2002
Posts: 145
G
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
Then, 2 things to think of.

Quicker than /ban -k ???

What about a user making troubles while being within the same $banmask as yourself?

#113461 05/03/05 06:43 PM
Joined: Jan 2005
Posts: 20
S
Smil3r Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 20

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.

#113462 06/03/05 02:01 AM
Joined: Dec 2002
Posts: 145
G
Vogon poet
Offline
Vogon poet
G
Joined: Dec 2002
Posts: 145
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.
#113463 06/03/05 08:12 PM
Joined: Jan 2005
Posts: 20
S
Smil3r Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 20

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.

#113464 06/03/05 08:27 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
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.
Code:
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 smile

#113465 06/03/05 09:08 PM
Joined: Jan 2005
Posts: 20
S
Smil3r Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 20
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 smirk

#113466 06/03/05 09:35 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Haha I know what's going on. It's triggered from the retailate ban YOU make. laugh
Code:
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! }
}

#113467 06/03/05 09:47 PM
Joined: Jan 2005
Posts: 20
S
Smil3r Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2005
Posts: 20

D'oh!!

I shouldv'e seen that lol *slaps self*

Thanks for pointing that out!


Smil3r

#113468 06/03/05 09:55 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Me too! :tongue:

#113469 08/03/05 05:07 AM
Joined: Mar 2005
Posts: 1
E
Mostly harmless
Offline
Mostly harmless
E
Joined: Mar 2005
Posts: 1
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.


Link Copied to Clipboard