Linux SoftwareProgrammingLibrariesNet::IRC3::Util 0.3

Net::IRC3::Util 0.3


Net::IRC3::Util are common utilities that help with IRC protocol handling. SYNOPSIS use Net::IRC3 qw/parse_irc_msg mk_msg/;
Developer:   Robin Redeker
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   10K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


Net::IRC3::Util are common utilities that help with IRC protocol handling.

SYNOPSIS

use Net::IRC3 qw/parse_irc_msg mk_msg/;

my $msgdata = mk_msg (undef, PRIVMSG

FUNCTIONS

These are some utility functions that might come in handy when handling the IRC protocol.

You can export these with eg.:

use Net::IRC3 qw/parse_irc_msg/;

parse_irc_msg ($ircline)

This method parses the $ircline, which is one line of the IRC protocol without the trailing "1512".

It returns a hash which has the following entrys:

prefix

The message prefix.

command

The IRC command.

params

The parameters to the IRC command in a array reference, this includes the trailing parameter (the one after the ':' or the 14th parameter).

trailing

This is set if there was a trailing parameter (the one after the ':' or the 14th parameter).
mk_msg ($prefix, $command, $trailing, @params)

This function assembles a IRC message. The generated message will look like (pseudo code!)

: :

Please refer to RFC 2812 how IRC messages normally look like.

The prefix and the trailing string will be omitted if they are undef.

EXAMPLES:

mk_msg (undef, "PRIVMSG", "you suck!", "magnus");
# will return: "PRIVMSG magnus :you suck!1512"

mk_msg (undef, "JOIN", undef, "#test");
# will return: "JOIN #magnus1512"

decode_ctcp ($ircmsg) or decode_ctcp ($line)

split_prefix ($prefix)

This function splits an IRC user prefix as described by RFC 2817 into the three parts: nickname, user and host. Which will be returned as a list with that order.

$prefix can also be a hash like it is returned by parse_irc_msg.

prefix_nick ($prefix)

A shortcut to extract the nickname from the $prefix.

$prefix can also be a hash like it is returned by parse_irc_msg.

prefix_user ($prefix)

A shortcut to extract the username from the $prefix.

$prefix can also be a hash like it is returned by parse_irc_msg.

prefix_host ($prefix)

A shortcut to extract the hostname from the $prefix.

$prefix can also be a hash like it is returned by parse_irc_msg.

Requirements:
  • Perl
    tags irc msg  parse irc  prefix can  prefix prefix  the prefix  can also  msg prefix  hash like  the irc  net irc3  from the  the trailing  irc protocol  

    Download Net::IRC3::Util 0.3


     http://ftp.hostingromania.ro/Linux/mirrors/ftp.cpan.org/authors/id/E/EL/ELMEX/Net-IRC3-0.3.tar.gz


    Authors software

    Net::IRC3::Util 0.3 (by Robin Redeker)
    Net::IRC3::Util are common utilities that help with IRC protocol handling.

    SYNOPSIS

    use Net::IRC3 qw/parse_irc_msg mk_msg/;


    Similar software

    Net::IRC3::Util 0.3 (by Robin Redeker)
    Net::IRC3::Util are common utilities that help with IRC protocol handling.

    SYNOPSIS

    use Net::IRC3 qw/parse_irc_msg mk_msg/;

    Template::Tutorial 2.15 (by Andy Wardley)
    Template::Tutorial are template toolkit tutorials.

    This section includes tutorials on using the Template Toolkit

    Gip Internet Protocol Calculator 1.6.1-1 (by Samuel Abels)
    Gip is an IP address calculator that integrates well with the GNOME desktop environment.

    Gip provides system administrators with t

    mod_stego 1.4 (by Andrea Marchesini)
    mod_stego is an apache 1.x module

    KayBot 1.4.1 (by Kay Three)
    KayBot is a bot written to guard IRC channels.

    To install, follow next procedure:
    ./configure --prefix=/your/home/dir (probably)

    ObfuscateJS 0.3.2 (by Michiel van Vlaardingen)
    ObfuscateJS is a command line JavaScript obfuscator

    Process Viewer 1.2 (by Sander Jansen)
    Process Viewer is a small utility similar to top which displays all the processes on a linux system

    eics 3.1c (by Aki Tossavainen)
    EICS is a tripwire like filesystem integrity checking utility.

    You configure the compilation by typing ./configure

    RandSig 0.1.2 (by Richard Garand)
    RandSig is an application that generates random signatures

    CLHEP 2.0.3.1 (by Andreas Pfeiffer)
    CLHEP project is intended to be a set of HEP-specific foundation and utility classes such as random generators, geometry, physics vec


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags