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 »

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 »

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 »

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

Post by MJ »

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 »

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