if ident & nick same = no connect

These are old archives. They are kept for historic purposes only.
Post Reply
rek1n

if ident & nick same = no connect

Post by rek1n » Mon May 23, 2005 3:30 pm

(my english verry little.......)

if ident & nick same = client no connect

sample:

* ASDEFR (ASDEFR@FBBDA2D8.FBB74ED6.435830AD.IP) has joined #Channel

* EHSHEJEJSHEHS (EHSHEJEJSHEHS@FBBDA2D8.FBB74ED6.435830AD.IP) has joined #Channel

note: ident & nick no take number. all character is harf letter.

TigerKatziTatzi
Posts: 36
Joined: Fri Apr 08, 2005 12:10 pm

Post by TigerKatziTatzi » Mon May 23, 2005 3:47 pm

isn't possible to check this with spamfilter.you are only able to trigger user (u). means regexpression in nick, ident or realname.

you may use a script for this which is comparing nickname with ident. But its dangerous. Cause alot of users using nickname and ident same, so you need to script this carefully.

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

Post by Jason » Mon May 23, 2005 4:27 pm

Here is your regular expression. Use type u in /spamfilter.

([^!]+)!\1@.*
Why the hell can't my signature be empty?
"Your message contains too few characters."

rek1m

.

Post by rek1m » Mon May 23, 2005 4:47 pm

i have:

Code: Select all

spamfilter { 
regex "^(.+)!~?\1@.+:\1"; 
target user; 
action kill; 
reason "Nicki ile identi aynı olanlar baglanamaz. Ident'i değiştiriniz."; 
}; 
but spoilt

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

Post by Stealth » Mon May 23, 2005 10:20 pm

Take off the last \1

Your regex should be:

Code: Select all

^(.+)!~?\1@

White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic » Mon Jun 06, 2005 10:29 am

i have a question say i want to add the case sensitivity to this, how would it work...

would it be..

Code: Select all

^(?i.+)!~?\1@.+
or would it be

Code: Select all

^((?i).+)!~?\1@.+
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D

codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr » Mon Jun 06, 2005 10:08 pm

White_Magic wrote:i have a question say i want to add the case sensitivity to this, how would it work...

would it be..

Code: Select all

^(?i.+)!~?\1@.+
or would it be

Code: Select all

^((?i).+)!~?\1@.+
The latter. The former is illegal.
-- codemastr

aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight » Tue Jun 07, 2005 4:12 am

I'm curious to know how you have a user with a username/ident longer than the normal USERLEN of 10.

Here's a regex that will handle cases where the nickname is too long for the username (since NICKLEN is 30 which is > USERLEN of 10):

^((?i).{1,10}).*!\1@

AND

^((?i).{1,9}).*!~\1@

(Although I suppose you could get away with ^((?i).{1,10}).*!~?\1@ )

White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic » Tue Jun 07, 2005 1:59 pm

thanks :D
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D

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

Post by Jason » Tue Jun 07, 2005 3:04 pm

I cant be the only one who is Jason!Jason@*
Why the hell can't my signature be empty?
"Your message contains too few characters."

Post Reply