Trunicate Quit messages below 3 lines?

These are old archives. They are kept for historic purposes only.
Post Reply
nate
Posts: 148
Joined: Fri Jul 29, 2005 10:12 am
Location: Johnstown, Pa
Contact:

Trunicate Quit messages below 3 lines?

Post by nate »

I've looked through the Faq's, searched the board and checked the documentation, and essentially come to realize that to what I can tell off hand that there isn't any way to do this excluding direct editing of the module itself (which i'mma not about to really try)

Now, my mIRC client i usually have stretched nearly entire screen width, i'mma say prob around 950 pixels on a 1024 width screen, and there are a few people i've seen that use like quotes in their signatures, which are like extremely long and essentially go until like 3 full lines before it trunicates it off at the end.

Is there any way easier to shorten this off hand?
Matridom
Posts: 296
Joined: Fri Jan 07, 2005 3:28 am

Post by Matridom »

I think the best solution here would be to use a spamfilter with the block option, the exact regex however i'm not sure about.
Never argue with an idiot. They will bring you down to their level, then beat you with experience.
nate
Posts: 148
Joined: Fri Jul 29, 2005 10:12 am
Location: Johnstown, Pa
Contact:

Post by nate »

I was wondering about that as well, but that was just it, no clue what to actually place in order to limit overall characters displayed... i'll look into it more though, thank you
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Something like

Code: Select all

spamfilter {
    regex ".{120,}";
    target {
        quit;
    };
    reason "Quit-Message too long. Please use a shorter quit message";
};
should do the trick...

Of course a badword block should work too:

Code: Select all

badword quit {
	word ".{120,}";
	replace "User left the chat";
};
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

I'm not 100% on this, but aren't badwords glob matching only?
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Badwords can be regex too :)
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

Didn't know that, as I've never really used them, thanks :)
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

How does unreal tell if the badwords is glob or regex? I recall once having trouble with a regex that aparently wasnt obvious enough.
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 think it looks for regex-like patterns in the masks... Like regex would have .+, [ and ], etc, while globs will normally only have ? * and letters.
nate
Posts: 148
Joined: Fri Jul 29, 2005 10:12 am
Location: Johnstown, Pa
Contact:

Post by nate »

Sorry for the late reply.

The badword filter did work after a bit of playing with, the spamfilter however won't work without an action being taken, but the bad words filter does work now.

Just got tired of people with I think atleast gotta be 300-400 character quits.
Post Reply