Page 1 of 1
very long nickname
Posted: Wed May 03, 2006 6:19 pm
by Bronx AnarchY
Irc.KonyaChat.Com- *** Notice -- Client connecting on port 7857: nnnnnnnnnnnnnnnnnnnn (
[email protected]) [clients]
whats regex ?
Posted: Wed May 03, 2006 8:37 pm
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.
Posted: Wed May 03, 2006 11:47 pm
by Stealth
Why use regex?
ban nick {
mask "????????????????????*";
reason "Nick too long";
};
Posted: Sat May 06, 2006 12:22 am
by Jason
Because in my experience, ? is useless in ban nick.
Posted: Sat May 06, 2006 3:31 pm
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";
};
Posted: Sun May 07, 2006 3:31 pm
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
Posted: Sun May 07, 2006 7:25 pm
by aquanight
If you don't want repeated characters:
^(.)\1{4,}
Posted: Mon May 08, 2006 1:48 pm
by Bronx AnarchY
its regexe ?
exp :
spamfilter {
regex "^(.)\1{4,}";
target away;
reason "Dont Repeat Charecter on nickname";
action block;
};
Posted: Mon May 08, 2006 8:36 pm
by Jason
Yes
But use target user;
And for good form, put a ! at the end of the regex.
Posted: Sun May 14, 2006 12:23 pm
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?
Ban nick regex
Posted: Sun May 14, 2006 1:50 pm
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
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!!!
Posted: Sun May 14, 2006 5:08 pm
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