it is possible a script that on the connection fase checks the Nickname lenght and if it is longer than 10 characters the user is disconnected with a message?
Sure!
function NewUserConnected(curUser)
if(strlen(curUser.sName) > 10) then
SendToNick(curUser.sName,"Your nickname contain more than 10 characters.")
curUser:Disconnect()
end
end
thank you!
it is true that longer nicks thakes more bandwith?
this script cecks also the Ops & Masters?
above script doesn't apply for Operators and Masters.
QuoteOriginally posted by angelsanges
thank you!
it is true that longer nicks thakes more bandwith?
this script cecks also the Ops & Masters?
something big always uses more then something small.
but compaired 2 the rest of the infostring 10 is nothing.
i wouldn't worry about it 2 much, blocking anything above 15-20 looks oke 2 me.
the auto search from dc++ takes a whole lot more bandwidth.
i'm gone add the same check 2 a.i. as i've seen nicks in my logs with around 256 characters, some weirdo's around.
plop
and it is possible to modify the bot to do checks only only on normal users?
QuoteOriginally posted by angelsanges
and it is possible to modify the bot to do checks only only on normal users?
that only applies for normal users ;)
hmm
note for me: good idea for a settings for G6, a varable of max length name, maybe a min length 2, nice one ;)
QuoteOriginally posted by angelsanges
and it is possible to modify the bot to do checks only only on normal users?
here you are, only unreged users are checked.
function NewUserConnected(curUser)
if(strlen(curUser.sName) > 10) and curUser.iProfile == -1 then
SendToNick(curUser.sName,"Your nickname contain more than 10 characters.")
curUser:Disconnect()
end
end
plop
ooops excuse me :D
function NewUserConnected(curUser)
if(strlen(curUser.sName) > 10) and curUser.iProfile == -1 then
SendToNick(curUser.sName,"Your nickname contain more than 10 characters.")
curUser:Disconnect()
end
end
it is possible to insert also a mini lenght check?
function NewUserConnected(curUser)
if(strlen(curUser.sName) > 10) and curUser.iProfile == -1 then
SendToNick(curUser.sName,"Your nickname contain more than 10 characters.")
curUser:Disconnect()
elseif (strlen(curUser.sName) < 4) and curUser.iProfile == -1 then
SendToNick(curUser.sName,"Your nickname contain less than 4 characters.")
curUser:Disconnect()
end
end