class documentation

class IRCProto(basesupport.AbstractClientMixin, irc.IRCClient): (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method action Called when I see a user perform an ACTION on a channel.
Method connection​Made Called when a connection is made.
Method get​Group​Conversation Undocumented
Method get​Person Undocumented
Method irc​_333 Undocumented
Method irc_​JOIN Called when a user joins a channel.
Method irc_​NICK Called when a user changes their nickname.
Method irc_​PART Called when a user leaves a channel.
Method irc_​QUIT Called when a user has quit.
Method irc_​RPL_​ENDOFNAMES Undocumented
Method irc_​RPL_​NAMREPLY RPL_NAMREPLY >> NAMES #bnl << :Arlington.VA.US.Undernet.Org 353 z3p = #bnl :pSwede Dan-- SkOyg AG
Method irc_​RPL_​TOPIC Called when the topic for a channel is initially reported or when it subsequently changes.
Method irc_​TOPIC Someone in the channel set the topic.
Method irc​_unknown Undocumented
Method join​Group Undocumented
Method kicked​From Called when I am kicked from a channel.
Method noticed Called when I have a notice from a user to me or a channel.
Method privmsg Called when I have a message from a user to me or a channel.
Method set​Nick Set this client's nickname.
Method user​Kicked Called when I observe someone else being kicked from a channel.
Instance Variable account​Name Undocumented
Instance Variable name Undocumented
Instance Variable nickname Undocumented
Instance Variable password Undocumented
Instance Variable perform​Login Undocumented
Instance Variable realname Undocumented
Instance Variable _groups Undocumented
Instance Variable _ingroups Undocumented
Instance Variable _namreplies Undocumented
Instance Variable _topics Undocumented

Inherited from AbstractClientMixin:

Method connection​Lost Undocumented
Method unregister​As​Account​Client Tell the chat UI that I have `signed off'.
Instance Variable account Undocumented
Instance Variable chat Undocumented
Class Variable _proto​Base Undocumented
Instance Variable _logon​Deferred Fired when I am done logging in.

Inherited from IRCClient:

Method __getstate__ Undocumented
Method alter​Collided​Nick Generate an altered version of a nickname that caused a collision in an effort to create an unused related name for subsequent registration.
Method away Mark this client as away.
Method back Clear the away status.
Method bad​Message When I get a message that's so broken I can't use it.
Method bounce Called with information about where the client should reconnect.
Method connection​Lost Called when the connection is shut down.
Method created Called with creation date information about the server, usually at logon.
Method ctcp​Make​Query Send one or more extended messages as a CTCP query.
Method ctcp​Make​Reply Send one or more extended messages as a CTCP reply.
Method ctcp​Query Dispatch method for any CTCP queries received.
Method ctcp​Query_​ACTION Undocumented
Method ctcp​Query_​CLIENTINFO A master index of what CTCP tags this client knows.
Method ctcp​Query_​DCC Initiate a Direct Client Connection
Method ctcp​Query_​ERRMSG Undocumented
Method ctcp​Query_​FINGER Undocumented
Method ctcp​Query_​PING Undocumented
Method ctcp​Query_​SOURCE Undocumented
Method ctcp​Query_​TIME Undocumented
Method ctcp​Query_​USERINFO Undocumented
Method ctcp​Query_​VERSION Undocumented
Method ctcp​Reply Dispatch method for any CTCP replies received.
Method ctcp​Reply_​PING Undocumented
Method ctcp​Unknown​Query Fallback handler for unrecognized CTCP queries.
Method ctcp​Unknown​Reply Called when a fitting ctcpReply_ method is not found.
Method data​Received Protocol.dataReceived. Translates bytes into lines, and calls lineReceived (or rawDataReceived, depending on mode.)
Method dcc_​ACCEPT Undocumented
Method dcc_​CHAT Undocumented
Method dcc_​RESUME Undocumented
Method dcc_​SEND Undocumented
Method dcc​Accept​Resume Send a DCC ACCEPT response to clients who have requested a resume.
Method dcc​Do​Accept​Resume Called when a client has verified and accepted a DCC resume request made by us. By default it will do nothing.
Method dcc​Do​Chat Undocumented
Method dcc​Do​Resume Called when a client is trying to resume an offered file via DCC send. It should be either replied to with a DCC ACCEPT or ignored (default).
Method dcc​Do​Send Called when I receive a DCC SEND offer from a client.
Method dcc​Resume Send a DCC RESUME request to another user.
Method dcc​Send This is supposed to send a user a file directly. This generally doesn't work on any client, and this method is included only for backwards compatibility and completeness.
Method describe Strike a pose.
Method get​Channel​Mode​Params Get channel modes that require parameters for correct parsing.
Method get​User​Mode​Params Get user modes that require parameters for correct parsing.
Method handle​Command Determine the function to call for the given command and call it with the given arguments.
Method invite Attempt to invite user to channel
Method irc_​ERR_​ERRONEUSNICKNAME Called when we try to register or change to an illegal nickname.
Method irc_​ERR_​NICKNAMEINUSE Called when we try to register or change to a nickname that is already taken.
Method irc_​ERR_​PASSWDMISMATCH Called when the login was incorrect.
Method irc_​KICK Called when a user is kicked from a channel.
Method irc_​MODE Parse a server mode change message.
Method irc_​NOTICE Called when a user gets a notice.
Method irc_​PING Called when some has pinged us.
Method irc_​PRIVMSG Called when we get a message.
Method irc_​RPL_​BOUNCE Undocumented
Method irc_​RPL_​CREATED Undocumented
Method irc_​RPL_​ENDOFMOTD RPL_ENDOFMOTD indicates the end of the message of the day messages. Deliver the accumulated lines to receivedMOTD.
Method irc_​RPL_​ISUPPORT Undocumented
Method irc_​RPL_​LUSERCHANNELS Undocumented
Method irc_​RPL_​LUSERCLIENT Undocumented
Method irc_​RPL_​LUSERME Undocumented
Method irc_​RPL_​LUSEROP Undocumented
Method irc_​RPL_​MOTD Undocumented
Method irc_​RPL_​MOTDSTART Undocumented
Method irc_​RPL_​MYINFO Undocumented
Method irc_​RPL_​NOTOPIC Undocumented
Method irc_​RPL_​WELCOME Called when we have received the welcome from the server.
Method irc_​RPL_​YOURHOST Undocumented
Method isupport Called with various information about what the server supports.
Method join Join a channel.
Method joined Called when I finish joining a channel.
Method kick Attempt to kick a user from a channel.
Method leave Leave a channel.
Method left Called when I have left a channel.
Method line​Received Override this for when each line is received.
Method luser​Channels Called with the number of channels existent on the server.
Method luser​Client Called with information about the number of connections, usually at logon.
Method luser​Me Called with information about the server connected to.
Method luser​Op Called with the number of ops logged on to the server.
Method mode Change the modes on a user or channel.
Method mode​Changed Called when users or channel's modes are changed.
Method msg Send a message to a user or channel.
Method my​Info Called with information about the server, usually at logon.
Method nick​Changed Called when my nick has been changed.
Method notice Send a notice to a user.
Method ping Measure round-trip delay to another IRC client.
Method pong Called with the results of a CTCP PING query.
Method quirky​Message This is called when I receive a message which is peculiar, but not wholly indecipherable.
Method quit Disconnect from the server
Method received​MOTD I received a message-of-the-day banner from the server.
Method register Login to the server.
Method say Send a message to a channel
Method send​Line Sends a line to the other end of the connection.
Method signed​On Called after successfully signing on to the server.
Method start​Heartbeat Start sending PING messages every IRCClient.heartbeatInterval seconds to keep the connection to the server alive during periods of no activity.
Method stop​Heartbeat Stop sending PING messages to keep the connection to the server alive.
Method topic Attempt to set the topic of the given channel, or ask what it is.
Method topic​Updated In channel, user changed the topic to newTopic.
Method user​Joined Called when I see another user joining a channel.
Method user​Left Called when I see another user leaving a channel.
Method user​Quit Called when I see another user disconnect from the network.
Method user​Renamed A user changed their name from oldname to newname.
Method whois Retrieve user information about the given nickname.
Method your​Host Called with daemon information about the server, usually at logon.
Class Variable __pychecker__ Undocumented
Class Variable dcc​_destdir Undocumented
Class Variable delimiter Undocumented
Instance Variable dcc​_sessions Undocumented
Instance Variable erroneous​Nick​Fallback Default nickname assigned when an unregistered client triggers an ERR_ERRONEUSNICKNAME while trying to register with an illegal nickname.
Instance Variable finger​Reply Sent in reply to a FINGER CTCP query. If None, no FINGER reply will be sent.
Instance Variable heartbeat​Interval Interval, in seconds, to send PING messages to the server as a form of keepalive, defaults to 120 seconds. Use None to disable the heartbeat.
Instance Variable hostname Host name of the IRC server the client is connected to. Initially the host name is None and later is set to the host name from which the RPL_WELCOME message is received.
Instance Variable line​Rate Minimum delay between lines sent to the server. If None, no delay will be imposed.
Instance Variable motd Either None or, between receipt of RPL_MOTDSTART and RPL_ENDOFMOTD, a list of str, each of which is the content of an RPL_MOTD message.
Instance Variable source​URL CTCP SOURCE reply, a URL where the source code of this client may be found. If None, no SOURCE reply will be sent.
Instance Variable supported Available ISUPPORT features on the server
Instance Variable userinfo Sent in reply to a USERINFO CTCP query. If None, no USERINFO reply will be sent. "This is used to transmit a string which is settable by the user (and never should be set by the client)."
Instance Variable username Supplied to the server during login as the "User name". May be None
Instance Variable version​Env CTCP VERSION reply, environment the client is running in.
Instance Variable version​Name CTCP VERSION reply, client name. If None, no VERSION reply will be sent.
Instance Variable version​Num CTCP VERSION reply, client version.
Method _create​Heartbeat Create the heartbeat LoopingCall.
Method _really​Send​Line Undocumented
Method _safe​Maximum​Line​Length Estimate a safe maximum line length for the given command.
Method _send​Heartbeat Send a PING message to the IRC server as a form of keepalive.
Method _send​Line Undocumented
Constant _MAX​_PINGRING Undocumented
Instance Variable _attempted​Nick The nickname that will try to get registered. It may change if it is illegal or already taken. nickname becomes the _attemptedNick that is successfully registered.
Instance Variable _heartbeat Looping call to perform the keepalive by calling IRCClient._sendHeartbeat every heartbeatInterval seconds, or None if there is no heartbeat.
Instance Variable _pings Undocumented
Instance Variable _queue Undocumented
Instance Variable _queue​Emptying Undocumented
Instance Variable _registered Whether or not the user is registered. It becomes True once a welcome has been received from the server.

Inherited from LineReceiver (via IRCClient):

Method clear​Line​Buffer Clear buffered data.
Method line​Length​Exceeded Called when the maximum line length has been reached. Override if it needs to be dealt with in some special way.
Method raw​Data​Received Override this for when raw data is received.
Method set​Line​Mode Sets the line-mode of this receiver.
Method set​Raw​Mode Sets the raw mode of this receiver. Further data received will be sent to rawDataReceived rather than lineReceived.
Constant MAX​_LENGTH The maximum length of a line to allow (If a sent line is longer than this, the connection is dropped). Default is 16384.
Instance Variable line​_mode Undocumented
Instance Variable _buffer Undocumented
Instance Variable _busy​Receiving Undocumented

Inherited from Protocol (via IRCClient, LineReceiver):

Method log​Prefix Return a prefix matching the class name, to identify log messages related to this protocol instance.
Class Variable factory Undocumented

Inherited from BaseProtocol (via IRCClient, LineReceiver, Protocol):

Method make​Connection Make a connection to a transport and a server.
Instance Variable connected Undocumented
Instance Variable transport Undocumented

Inherited from _PauseableMixin (via IRCClient, LineReceiver):

Method pause​Producing Undocumented
Method resume​Producing Undocumented
Method stop​Producing Undocumented
Instance Variable paused Undocumented
def __init__(self, account, chatui, logonDeferred=None): (source)
def action(self, username, channel, emote): (source)
Called when I see a user perform an ACTION on a channel.
def connectionMade(self): (source)

Called when a connection is made.

This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.

def getGroupConversation(self, name, hide=0): (source)

Undocumented

def getPerson(self, name): (source)

Undocumented

def irc_333(self, prefix, params): (source)

Undocumented

def irc_JOIN(self, prefix, params): (source)
Called when a user joins a channel.
def irc_NICK(self, prefix, params): (source)
Called when a user changes their nickname.
def irc_PART(self, prefix, params): (source)
Called when a user leaves a channel.
def irc_QUIT(self, prefix, params): (source)
Called when a user has quit.
def irc_RPL_ENDOFNAMES(self, prefix, params): (source)

Undocumented

def irc_RPL_NAMREPLY(self, prefix, params): (source)
RPL_NAMREPLY >> NAMES #bnl << :Arlington.VA.US.Undernet.Org 353 z3p = #bnl :pSwede Dan-- SkOyg AG
def irc_RPL_TOPIC(self, prefix, params): (source)
Called when the topic for a channel is initially reported or when it subsequently changes.
def irc_TOPIC(self, prefix, params): (source)
Someone in the channel set the topic.
def irc_unknown(self, prefix, command, params): (source)
def joinGroup(self, name): (source)

Undocumented

def kickedFrom(self, channel, kicker, message): (source)
Called when I am kicked from a channel.
def noticed(self, username, channel, message): (source)

Called when I have a notice from a user to me or a channel.

If the client makes any automated replies, it must not do so in response to a NOTICE message, per the RFC:

    The difference between NOTICE and PRIVMSG is that
    automatic replies MUST NEVER be sent in response to a
    NOTICE message. [...] The object of this rule is to avoid
    loops between clients automatically sending something in
    response to something it received.
def privmsg(self, username, channel, message, metadata=None): (source)
Called when I have a message from a user to me or a channel.
def setNick(self, nick): (source)
Set this client's nickname.
Parameters
nickUndocumented
nickname:strThe nickname to change to.
def userKicked(self, kickee, channel, kicker, message): (source)
Called when I observe someone else being kicked from a channel.
accountName = (source)

Undocumented

name = (source)

Undocumented

_groups: dict = (source)

Undocumented

_ingroups: dict = (source)

Undocumented

_namreplies: dict = (source)

Undocumented

_topics: dict = (source)

Undocumented