mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2003
Posts: 36
S
s0tt0 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2003
Posts: 36
I want to get rid of one guy. i know his ip and host. i made something like this:

on *:join:#:{
if ( $address(nick,2) == *!*@somehost.com ) { kick $chan $nick kicked for annoying }
}

but it doesn't work. Can please someone help me.

Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
on *:join:#: {
if ( $address($nick,2) == *!*@somehost.com ) { kick $chan $nick kicked for annoying }
}


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Jan 2003
Posts: 36
S
s0tt0 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2003
Posts: 36
still doesnt work...

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Try ..

Code:
  on *:join:#: {
  if ($nick == $me) { halt }
  elseif ( $address($nick,2) == *!*@somehost.com    ) { kick $chan $nick kicked for annoying }
}  

.. smile

Joined: Jan 2003
Posts: 36
S
s0tt0 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2003
Posts: 36
but he still can join to channel

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
The purpose of the code was to kick the user when he/she joins. Try this then. wink

Code:
  
on *:join:#: {  if ($nick == $me) { halt }  elseif ( $address($nick,2) == *!*@somehost.com    ) { mode # +b $nick | kick $chan $nick kicked for annoying | halt } 
}



smile

Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
on @*:join:#: {
if ( $address($nick,2) == *!*@somehost.com ) {
mode # +b $address($nick,2)
kick $chan $nick kicked for annoying
}
}
@ you have to be opped to kick someone, and why would you use a host which matches you, so if ( $nick == $me ) is useless and also you can't be opped at the time on join event fires when you join


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Jan 2003
Posts: 36
S
s0tt0 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Jan 2003
Posts: 36
it still doesnt work frown. this code is 1:1 copyied from my script

on @*:join:#snype.ee: { if ( $address($nick,2) == *!*@80-235-57-184-dsl.trt.estpak.ee ) { kick $chan $nick kicked for annoying} }

Joined: Dec 2002
Posts: 843
P
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 843
If you have SOp or are the channel founder, and the network has ChanServ, try /chanserv akick #channel add *!*@somehost.com
The person will still be able to join, but will be immediately kicked out. You could just set an ordinary ban but it would disappear as soon as there's a netsplit.

Last edited by Poppy; 06/04/03 01:21 PM.

Never compare yourself to others - they're more screwed up than you think.
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
 
on @:JOIN:#snype.ee: { 
if ( $address($nick,2) == *!*@80-235-57-184-dsl.trt.estpak.ee ) { kick $chan $nick kicked for annoying } 
} 



"Should" work.

Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
How about:

on @*:join:#snype.ee: {
if ($mask($fulladdress,2) == *!*@80-235-57-184-dsl.trt.estpak.ee) { kick $chan $nick kicked for annoying }
}

or

on @*:join:#snype.ee: {
if ($mask($fulladdress,2) == *!*@80-235-57-184-dsl.trt.estpak.ee) { kick # $nick kicked for annoying }
}


Another train of thought is:


on me*:join:#snype.ee://timerBan $+ # 1 20 //mode # +b *!*@80-235-57-184-dsl.trt.estpak.ee

Granted you have to get opped before that timer goes off, but still, is another way to deal with that person

Last edited by landonsandor; 06/04/03 01:48 PM.

Those who fail history are doomed to repeat it
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Why not just use $address...

Code:
ON *:JOIN:#: {
  if ($address == blah.host.org || $address == 1.2.3.4) {
    ban # $nick 2
    kick # $nick You are not welcome here
  }
}
Don't forget that the user does need a static IP/Host for this to work all of the time.

Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
And then of course there's always:

ON @*:JOIN:#channel: {
if ($wildsite == *!*@80-235-57-184-dsl.trt.estpak.ee || $wildsite == *!*@1.2.3.4) { ban # $wildsite | kick # $nick You are not welcome here }
}


Those who fail history are doomed to repeat it
Joined: Dec 2002
Posts: 191
N
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
Quote:

Why not just use $address...


Dont you mean $site as $address in an event returns the identd as well as host identd@some.host where as $site will just return some.host .

Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
$site is exactly what I meant. Thankyou. grin


Link Copied to Clipboard