mIRC Home    About    Download    Register    News    Help

Print Thread
#138557 02/01/06 10:57 PM
Joined: Sep 2004
Posts: 44
T
Thermal Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Sep 2004
Posts: 44
how would i get this to kick after 60 seconds if they dont change their nick to something shorter?

on !*:NICK: {
var %c = #channel
var %nnick $newnick
if ($len(%nnick) >= 20) && (%nnick ison %c) && ($me isop %c) {
msg $chan %c $+(%nnick,!*@*) You nick is too long (max of 20 characters is only allowed) Please change it, or you will be kicked
timer 1 60 kick #channel %nnick Come Back With A Shorter Nick
}
if ($len(%nnick) <= 20) && (%nnick ison %c) && ($me isop %c) { halt }
}

thanks in advance smile

#138558 02/01/06 11:03 PM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
Could just set a ban like ????????????????????*!*@*

Or name the timer by their nick and the channel, maybe the connection ID too.

When they change to something shorter than 20 chars turn the timer off.

Remember and rename the timer if they change to another invalid nick. Turn it off if they part, quit or get kicked.

#138559 03/01/06 12:22 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
 on !@*:nick:{
var %chan = &lt;#channel&gt;
if $len($newnick) &gt; 20 {
.msg %chan $newnick 20 characters or less in your nick
$+(.timer,$address) 1 60 .kick %chan $newnick
}
elseif $timer($address) {
$+(.timer,$address) off
}
}
 

Last edited by RusselB; 03/01/06 12:59 AM.
#138560 03/01/06 12:52 AM
Joined: Sep 2004
Posts: 44
T
Thermal Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Sep 2004
Posts: 44
still kicks them , if they change their nicks to something shorter

#138561 03/01/06 01:00 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Ooops...sorry...code has been edited.

#138562 03/01/06 01:09 AM
Joined: Sep 2004
Posts: 44
T
Thermal Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Sep 2004
Posts: 44
thanks alot smile


Link Copied to Clipboard