X-Git-Url: http://git.vpit.fr/?p=perl%2Fscripts%2Fxchat.git;a=blobdiff_plain;f=Xchat%2FXPI%2FUtils.pm;fp=Xchat%2FXPI%2FUtils.pm;h=0b4bff91b7266fa72e4ff65c617e81e9d310efcb;hp=cbd9494ae1cd5a158d34dc78a32a2196eadd7ff8;hb=0a342794e65a5975f4574d143a600cad8eaa9c7d;hpb=edef44980a97323b66add1052bc737fe1e11975f diff --git a/Xchat/XPI/Utils.pm b/Xchat/XPI/Utils.pm index cbd9494..0b4bff9 100644 --- a/Xchat/XPI/Utils.pm +++ b/Xchat/XPI/Utils.pm @@ -7,6 +7,14 @@ use Xchat qw<:all>; our $VERSION = '0.02'; +sub irc_lc { + my ($bytes) = @_; + + $bytes =~ y/A-Z[\\]^/a-z{|}~/; + + return $bytes; +} + my @rcolors; BEGIN { if (nickcmp(get_info('version'), '2.4.0') < 0) { @@ -83,6 +91,7 @@ use base qw; our @EXPORT = (); our %EXPORT_TAGS = ('funcs' => [ qw< + irc_lc dye_nick gui save_context local_context