Event(3)
π NAME π
okay bestie, so Net::IRC::Event β it's a class for passing event data between subroutines. that's it, that's the whole vibe. β¨
πΈ SYNOPSIS πΈ
literally none yet, bestie π these docs are under construction. we're getting there.
π¦ DESCRIPTION π¦
so real talk: this documentation is a subset of the main Net::IRC documentation. if you haven't already, please run perldoc Net::IRC before continuing. fr fr, do it first. π
Net::IRC::Event defines a standard interface to the salient information for just about any event your client may witness on IRC. it's about as close as we can get in Perl to a struct, with a few extra nifty features thrown in. π
π METHOD DESCRIPTIONS π
this section is under construction, but hopefully it'll finally be written up by the next release. in the meantime, please see the irctest script and the source for details about this module. iykyk π«Ά
π LIST OF EVENTS π
okay so Net::IRC is an entirely event-based system, which takes some getting used to at first, ngl. to interact with the IRC server, you tell Net::IRC's server connection to listen for certain events and activate your own subroutines when they occur. problem is... that doesn't help you much if you don't know what to tell it to look for. π
so below is a list of the possible events you can pass to Net::IRC, along with brief descriptions of each... hope this helps. π
β¨ Common events β¨
nickβ triggered when the client receives aNICKmessage, meaning that someone on a channel with the client has changed eir nickname.quitβ triggered upon receipt of aQUITmessage, which means someone on a channel with the client has disconnected. bye bestie πjoinβ triggered upon receipt of aJOINmessage, which means someone has entered a channel that the client is on.partβ triggered upon receipt of aPARTmessage, which means someone has left a channel that the client is on.modeβ triggered upon receipt of aMODEmessage, which means someone on a channel with the client has changed the channel's parameters.topicβ triggered upon receipt of aTOPICmessage, which means someone on a channel with the client has changed the channel's topic.kickβ triggered upon receipt of aKICKmessage, which means someone on a channel with the client (or possibly the client itself!!) has been forcibly ejected. πpublicβ triggered upon receipt of aPRIVMSGmessage to an entire channel, which means someone on a channel with the client has said something aloud.msgβ triggered upon receipt of aPRIVMSGmessage which is addressed to one or more clients, which means someone is sending the client a private message. (duh. :-)noticeβ triggered upon receipt of aNOTICEmessage, which means someone has sent the client a public or private notice. (is that sufficiently vague? π)pingβ triggered upon receipt of aPINGmessage, which means the IRC server is querying the client to see if it's alive. don't confuse this with CTCP PINGs, explained later. β οΈotherβ triggered upon receipt of any number of unclassifiable miscellaneous messages, but you're not likely to see it often.inviteβ triggered upon receipt of anINVITEmessage, which means someone is permitting the client's entry into a+ichannel.killβ triggered upon receipt of aKILLmessage, which means an IRC operator has just booted your sorry arse offline. seeya! πdisconnectβ triggered when the client loses its connection to the IRC server it's talking to. don't confuse it with theleavingevent. (see below.)leavingβ triggered just before the client deliberately closes a connection to an IRC server, in case you want to do anything special before you sign off.umodeβ triggered when the client changes its personal mode flags.errorβ triggered when the IRC server complains to you about anything. sort of the evil twin to theotherevent, actually. π
π CTCP Requests π
cpingβ triggered when the client receives a CTCP PING request from another user. see theirctestscript for an example of how to properly respond to this common request.cversionβ triggered when the client receives a CTCP VERSION request from another client, asking for version info about its IRC client program.csourceβ triggered when the client receives a CTCP SOURCE request from another client, asking where it can find the source to its IRC client program.ctimeβ triggered when the client receives a CTCP TIME request from another client, asking for the local time at its end.cdccβ triggered when the client receives a DCC request of any sort from another client, attempting to establish a DCC connection.cuserinfoβ triggered when the client receives a CTCP USERINFO request from another client, asking for personal information from the client's user.cclientinfoβ triggered when the client receives a CTCP CLIENTINFO request from another client, asking for whatever the hell "clientinfo" means. π€·cerrmsgβ triggered when the client receives a CTCP ERRMSG request from another client, notifying it of a protocol error in a preceding CTCP communication.cfingerβ triggered when the client receives a CTCP FINGER request from another client. how to respond to this should best be left up to your own moral stance. πcactionβ triggered when the client receives a CTCP ACTION message from another client. i should hope you're getting the hang of howNet::IRChandles CTCP requests by now... π
π CTCP Responses π
crpingβ triggered when the client receives a CTCP PING response from another user. see theirctestscript for an example of how to properly respond to this common event.crversionβ triggered when the client receives a CTCP VERSION response from another client.crsourceβ triggered when the client receives a CTCP SOURCE response from another client.crtimeβ triggered when the client receives a CTCP TIME response from another client.cruserinfoβ triggered when the client receives a CTCP USERINFO response from another client.crclientinfoβ triggered when the client receives a CTCP CLIENTINFO response from another client.crfingerβ triggered when the client receives a CTCP FINGER response from another client. i'm not even going to consider making a joke about this one. π
π¦ DCC Events π¦
dcc_openβ triggered when a DCC connection is established between the client and another client.dcc_updateβ triggered when any data flows over a DCC connection. useful for doing things like monitoring file transfer progress, for instance. π₯dcc_closeβ triggered when a DCC connection closes, whether from an error or from natural causes.chatβ triggered when the person on the other end of a DCC CHAT connection sends you a message. think of it as the private equivalent ofmsg, if you will.
β Numeric Events β
- there's a whole lot of them, and they're well-described elsewhere. please see the IRC RFC (
1495, athttp://cs-ftp.bu.edu/pub/irc/support/IRC_RFC) for a detailed description, or theNet::IRC::Event.pmsource code for a quick list.
π«Ά AUTHORS π«Ά
conceived and initially developed by Greg Bacon <gbacon@adtran.com> and Dennis Taylor <dennis@funkplanet.com>.
ideas and large amounts of code donated by Nat "King" Torkington <gnat@frii.com>.
currently being hacked on, hacked up, and worked over by the members of the Net::IRC developers mailing list. for details, see http://www.execpc.com/~corbeau/irc/list.html .
π URL π
up-to-date source and information about the Net::IRC project can be found at http://netirc.betterbox.net/ .
π SEE ALSO π
perl(1).- RFC 1459: The Internet Relay Chat Protocol
http://www.irchelp.org/, home of fine IRC resources.
and that's a wrap bestie π
this was perl v5.42.0, dated 2025-07-25, from the Event(3) page β go slay some IRC events, ily π«Άβ¨
π¦ where this page comes from
- fedora 43: perl-Net-IRC 0.79-40.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms