NICNAME

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:

NICNAME

Post by Bronx AnarchY »

I want, disable for short nick, exp : bo
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

Well, firstly I'd have to say, define "short" (1 letter, 2 letters, 5 letters, etc).

Assuming just one or two letters you could do:

Code: Select all

spamfilter {
    regex "^.{1,2}!.*";
    target { user; };
    action block;
    reason "Nick too short. Pick a longer nick.";
};
Bronx AnarchY
Posts: 53
Joined: Thu Apr 06, 2006 3:35 pm
Location: Turkey
Contact:

thnx

Post by Bronx AnarchY »

thnx
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Spamfilter was not designed for this, Unreal already has a feature that can be used. Use the ban nick block:

Code: Select all

ban nick {
  mask "?";
  reason "Nick too short";
};

ban nick {
  mask "??";
  reason "Nick too short";
};

ban nick {
  mask "???";
  reason "Nick too short";
};
Those will block nicks that have 1 2 or 3 characters, but will allow longer nicks. To add more, just increase the question marks.
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

Except the conf gets excessively large when you want to require, say, minimum of 6.
JanisB
Posts: 128
Joined: Fri Apr 22, 2005 9:05 am
Location: LV
Contact:

Post by JanisB »

Code: Select all

ban nick { 
  mask "?"; 
  reason "Nick too short"; 
};
For $me it doesn't work.. i have to add mask"a-z" manually :)
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

I must admit, I also noticed this peculiarity. When I used a ban nick of "?", \ could still use that nick.

A spamfilter of ^[^!][^!]?[^!]?! may be useful in this case. I wish I had thought of spamfilter for this purpose earlier.
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 »

Are you using the fixed 3.2.4? The first release of 3.2.4 had broken matching when it came to ?'s
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

Interesting. How do I check?
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 »

I forgot that part... Let me look
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Syzop was kind enough to put it here: http://www.unrealircd.com/324rerelease.txt
1. go to your Unreal3.2 directory
2. type: grep -F "(*m != '?')" src/match.c
3. if it returns 2 lines then you got the fix, if it returns 1 then not.
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

Fun. I guess I'll be updating then.
Why the hell can't my signature be empty?
"Your message contains too few characters."
Post Reply