very long nickname

These are old archives. They are kept for historic purposes only.
Post Reply
Bronx AnarchY
Posts: 53
Joined: Thu Apr 06, 2006 3:35 pm
Location: Turkey
Contact:

very long nickname

Post by Bronx AnarchY »

Irc.KonyaChat.Com- *** Notice -- Client connecting on port 7857: nnnnnnnnnnnnnnnnnnnn ([email protected]) [clients]



whats regex ?
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

This is for a long nick of any character.

^[^!]{10,}!

Change the 10 to the max length +1

^[^!][^!][^!][^!][^!][^!][^!][^!][^!][^!].*!

This one is for any characters in the nick, not just the same one. Add more of the [^!] to make it longer.
Why the hell can't my signature be empty?
"Your message contains too few characters."
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Why use regex?

ban nick {
mask "????????????????????*";
reason "Nick too long";
};
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

Because in my experience, ? is useless in ban nick.
Why the hell can't my signature be empty?
"Your message contains too few characters."
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

Jason wrote:Because in my experience, ? is useless in ban nick.
Yet as a test i have just done with version 3.2.4 reveals:
aaaaabbbbbcccccddddd Erroneous Nickname: Nick too long
With:

Code: Select all

ban nick { 
	mask "????????????????????*"; 
	reason "Nick too long"; 
};
Bronx AnarchY
Posts: 53
Joined: Thu Apr 06, 2006 3:35 pm
Location: Turkey
Contact:

Post by Bronx AnarchY »

I have ban nick line;

ban nick
{
mask "????????????????*";
reason "Lütfen Daha Kısa Bir Nick Seçiniz.";
};
ban nick
{
mask "??";
reason "Lütfen Daha Uzun Bir Nick Seçiniz.";
};


But I Want ; a nick for some charecters exp : aaaaaaaaaaaa

nnnnnnnnnnnnnn
zzzzzzzzzzzz
kkkkkkkkkk

I dont want it nickname
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

If you don't want repeated characters:

^(.)\1{4,}
Bronx AnarchY
Posts: 53
Joined: Thu Apr 06, 2006 3:35 pm
Location: Turkey
Contact:

Post by Bronx AnarchY »

its regexe ?

exp :

spamfilter {
regex "^(.)\1{4,}";
target away;
reason "Dont Repeat Charecter on nickname";
action block;
};
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

Yes

But use target user;

And for good form, put a ! at the end of the regex.
Why the hell can't my signature be empty?
"Your message contains too few characters."
defcon
Posts: 14
Joined: Sun Aug 29, 2004 9:11 pm
Location: Germany/Karlsruhe

Post by defcon »

Code: Select all

ban nick {
   mask "????????????????????*";
   reason "Nick too long";
};
works fine, when somebody wants to connect with a long nick.
but what about when changes his nick, when he is already connectet?
is there a possibility to forbid that?
kind regards
defcon
guesti

Ban nick regex

Post by guesti »

aquanight wrote:If you don't want repeated characters:

^(.)\1{4,}
And what is the regex for ban nick?

This two doesnt work

ban nick {
mask "^(.)\1{4,}";
reason "Do not repeat characters on nick!";
};
or

ban nick {
mask "^(?-i)([^a-z!]*[A-Z][^a-z!]*)!";
reason "No 100% Caps on nick allowed!";
};

Because when i put it on the spamfilter block a user that is allready connected sees the block msg when she/he tries to change the nickname in repeated characters, but what if they try to connect with repeated characters on nick like aaaaa they dont see the block msg. The spamfilter just block them, but they dont have any idea why.

Another way is tu put KILL on action not BLOCK, but they takes it very personally, because they see that he/she has been killed.

I thing its better idea tu put a regex on ban nick, because they just will be qlined and they still can change the nick without killing them :P

If there is a regex for ban nick on repeated char... and for 100% caps on nick that would be very helpfull. Thx for every help!!! :D
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Ban nick does not support regex.
works fine, when somebody wants to connect with a long nick.
but what about when changes his nick, when he is already connectet?
is there a possibility to forbid that?
It should work when they are already connected as well
Post Reply