[Mediawiki-l] Recent Changes UDP Announcement IRC Bot
Q
overlordq at gmail.com
Sun Sep 13 04:03:36 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
APseudoUtopia wrote:
>
> Ah, I suppose they are. I generally dislike using colors on IRC
> because the client I use doesn't manage colors well (And colors aren't
> even part of the RFC..
> ). Anyway, is there any way to strip these color codes out? I didn't
> see a configuration value anywhere in the docs for it.
Stripping (Perl, adjust accordingly):
sub strip{
my $text = shift;
$text =~ s/\cC\d{1,2}(?:,\d{1,2})?|[\cC\cB\cI\cU\cR\cO]//g;
return $text;
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEAREIAAYFAkqsbxgACgkQ69PBoSWyJd65HwCfQinhjEC5lFl96IWLeBfU6g0g
5tYAmgKD+j4IMmyOfwVqF9qdJnFs4FIz
=S7ZG
-----END PGP SIGNATURE-----
More information about the MediaWiki-l
mailing list