Help Me with regex

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

Help Me with regex

Post by HeSMa » Thu Mar 03, 2005 7:31 am

I need help with the regex for the quit
#FullPlanet: ºª ! // El mejor CyberCafe de Concepcion ABIERTO LAS 24 HORAS, ExCyberia Planet AHORA MEJOR "FULL PLANET", Tu eleccion // http://www.fullplanet.cl (en construccion) // Aurelio Manzano #575 (pasaje corto Al frente de supermercado las brisas)
sorry my english

:(

Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat » Thu Mar 03, 2005 10:17 am

Matching your exact quit message:

Code: Select all

/SPAMFILTER ADD q block - - ^#FullPlanet: ºª ! // El mejor CyberCafe de Concepcion ABIERTO LAS 24 HORAS, ExCyberia Planet AHORA MEJOR "FULL PLANET", Tu eleccion // www\.fullplanet\.cl \(en construccion\) // Aurelio Manzano #575 \(pasaje corto Al frente de supermercado las brisas\)$
Matching anything containing the URI:

Code: Select all

/SPAMFILTER ADD q block - - .*www\.fullplanet\.cl.*

You could also just add a badwords block to your unrealircd.conf:

Code: Select all

badword quit {
        word ".*www\.fullplanet\.cl.*";
        replace "Client Exited";
};
This has the advantage that you can replace the bad word :wink:

HeSMa

Post by HeSMa » Fri Mar 04, 2005 4:19 am

Thanz Very Much... i'm noob in regex :(

MJ

Post by MJ » Sat Mar 05, 2005 7:35 am

or you just can entirely remove any adveritisement on *quit* or on *Part* from unrealircd.conf all the way down look for it :)

X-TREM

quit msg

Post by X-TREM » Sun Aug 14, 2005 12:36 pm

You can also add your own quit msg when users disconnects from your network.

Just add this to your unrealircd.conf

static-quit "You can also visit us at http://www.domain.com";

and everyone that disconnects from the server will have the same quit msg. :wink:

Post Reply