circuits.net.protocols.irc – IRC Protocol

Events

class circuits.net.protocols.irc.RAW(*args, **kwargs)

RAW command

Components

class circuits.net.protocols.irc.IRC(*args, **kwargs)

IRC Protocol Component

Creates a new IRC Component instance that implements the IRC Protocol. Incoming messages are handled by the “read” Event Handler, parsed and processed with appropriate Events created and exposed to the rest of te system to listen to and handle.

@note: This Component must be used in conjunction with a Component that
exposes Read Events on a “read” Channel.
line(line)

Line Event Handler

Process a line of text and generate the appropiate event. This must not be overridden by sub-classes, if it is, this must be explitetly called by the sub-class. Other Components may however listen to this event and process custom IRC events.

ping(server)

Ping Event

This is a default event ro respond to Ping Events by sending out a Pong in response. Sub-classes may override this, but be sure to respond to Ping Events by either explitetly calling this method or sending your own Pong reponse.

Functions