Protocol::IRC::Client - IRC protocol handling for a client
Protocol::IRC::Client
This mix-in class provides a layer of IRC message handling logic suitable for an IRC client. It builds upon Protocol::IRC to provide extra message processing useful to IRC clients, such as handling inbound server numerics.
It provides some of the methods required by Protocol::IRC:
Protocol::IRC
isupport
Returns an item of information from the server's 005 ISUPPORT lines. Traditionally IRC servers use all-capital names for keys.
005 ISUPPORT
Returns an item of information from the server's 004 line. $key should one of
004
$key
host
version
usermodes
channelmodes
The following messages are handled internally by Protocol::IRC::Client.
These message involve channel modes. The raw list of channel modes is parsed into an array containing one entry per affected piece of data. Each entry will contain at least a type key, indicating what sort of mode or mode change it is:
type
The mode relates to a list; bans, invites, etc..
The mode sets a value about the channel
The mode is a simple boolean flag about the channel
The mode relates to a user in the channel
Every mode type then provides a mode key, containing the mode character itself, and a sense key which is an empty string, +, or -.
mode
sense
+
-
For list and value types, the value key gives the actual list entry or value being set.
list
value
For occupant types, a flag key gives the mode converted into an occupant flag (by the prefix_mode2flag method), nick and nick_folded store the user name affected.
occupant
flag
prefix_mode2flag
nick
nick_folded
boolean types do not create any extra keys.
boolean
Paul Evans <leonerd@leonerd.org.uk>
To install Net::Async::IRC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Async::IRC
CPAN shell
perl -MCPAN -e shell install Net::Async::IRC
For more information on module installation, please visit the detailed CPAN module installation guide.