Page 1 of 1
Trunicate Quit messages below 3 lines?
Posted: Tue Sep 06, 2005 4:04 pm
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?
Posted: Tue Sep 06, 2005 4:31 pm
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.
Posted: Tue Sep 06, 2005 4:51 pm
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
Posted: Tue Sep 06, 2005 6:54 pm
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";
};
Posted: Wed Sep 07, 2005 6:54 am
by w00t
I'm not 100% on this, but aren't badwords glob matching only?
Posted: Wed Sep 07, 2005 7:20 am
by Stealth
Badwords can be regex too

Posted: Thu Sep 08, 2005 8:54 am
by w00t
Didn't know that, as I've never really used them, thanks

Posted: Thu Sep 08, 2005 11:38 pm
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.
Posted: Fri Sep 09, 2005 12:26 am
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.
Posted: Fri Sep 09, 2005 3:40 pm
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.