webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Functions | Variables
webkitpy.thirdparty.irc.irclib Namespace Reference

Classes

class  Connection
 
class  DCCConnection
 
class  DCCConnectionError
 
class  Event
 
class  IRC
 
class  IRCError
 
class  ServerConnection
 
class  ServerConnectionError
 
class  ServerNotConnectedError
 
class  SimpleIRCClient
 

Functions

def mask_matches (nick, mask)
 
def irc_lower (s)
 
def is_channel (string)
 
def ip_numstr_to_quad (num)
 
def ip_quad_to_numstr (quad)
 
def nm_to_n (s)
 
def nm_to_uh (s)
 
def nm_to_h (s)
 
def nm_to_u (s)
 
def parse_nick_modes (mode_string)
 
def parse_channel_modes (mode_string)
 

Variables

int VERSION = 0, 4, 8
 
int DEBUG = 0
 
string nick_characters = string.ascii_letters + string.digits + _special
 
dictionary numeric_events
 
list generated_events
 
list protocol_events
 
list all_events = generated_events + protocol_events + numeric_events.values()
 

Function Documentation

◆ ip_numstr_to_quad()

def webkitpy.thirdparty.irc.irclib.ip_numstr_to_quad (   num)
Convert an IP number as an integer given in ASCII
representation (e.g. '3232235521') to an IP address string
(e.g. '192.168.0.1').

◆ ip_quad_to_numstr()

def webkitpy.thirdparty.irc.irclib.ip_quad_to_numstr (   quad)
Convert an IP address string (e.g. '192.168.0.1') to an IP
number as an integer given in ASCII representation
(e.g. '3232235521').

◆ irc_lower()

def webkitpy.thirdparty.irc.irclib.irc_lower (   s)
Returns a lowercased string.

The definition of lowercased comes from the IRC specification (RFC
1459).

◆ is_channel()

def webkitpy.thirdparty.irc.irclib.is_channel (   string)
Check if a string is a channel name.

Returns true if the argument is a channel name, otherwise false.

◆ mask_matches()

def webkitpy.thirdparty.irc.irclib.mask_matches (   nick,
  mask 
)
Check if a nick matches a mask.

Returns true if the nick matches, otherwise false.

◆ nm_to_h()

def webkitpy.thirdparty.irc.irclib.nm_to_h (   s)
Get the host part of a nickmask.

(The source of an Event is a nickmask.)

◆ nm_to_n()

def webkitpy.thirdparty.irc.irclib.nm_to_n (   s)
Get the nick part of a nickmask.

(The source of an Event is a nickmask.)

◆ nm_to_u()

def webkitpy.thirdparty.irc.irclib.nm_to_u (   s)
Get the user part of a nickmask.

(The source of an Event is a nickmask.)

◆ nm_to_uh()

def webkitpy.thirdparty.irc.irclib.nm_to_uh (   s)
Get the userhost part of a nickmask.

(The source of an Event is a nickmask.)

◆ parse_channel_modes()

def webkitpy.thirdparty.irc.irclib.parse_channel_modes (   mode_string)
Parse a channel mode string.

The function returns a list of lists with three members: sign,
mode and argument.  The sign is \"+\" or \"-\".  The argument is
None if mode isn't one of \"b\", \"k\", \"l\", \"v\" or \"o\".

Example:

>>> irclib.parse_channel_modes(\"+ab-c foo\")
[['+', 'a', None], ['+', 'b', 'foo'], ['-', 'c', None]]

◆ parse_nick_modes()

def webkitpy.thirdparty.irc.irclib.parse_nick_modes (   mode_string)
Parse a nick mode string.

The function returns a list of lists with three members: sign,
mode and argument.  The sign is \"+\" or \"-\".  The argument is
always None.

Example:

>>> irclib.parse_nick_modes(\"+ab-c\")
[['+', 'a', None], ['+', 'b', None], ['-', 'c', None]]

Variable Documentation

◆ all_events

list webkitpy.thirdparty.irc.irclib.all_events = generated_events + protocol_events + numeric_events.values()

◆ DEBUG

int webkitpy.thirdparty.irc.irclib.DEBUG = 0

◆ generated_events

list webkitpy.thirdparty.irc.irclib.generated_events
Initial value:
1 = [
2  # Generated events
3  "dcc_connect",
4  "dcc_disconnect",
5  "dccmsg",
6  "disconnect",
7  "ctcp",
8  "ctcpreply",
9 ]

◆ nick_characters

string webkitpy.thirdparty.irc.irclib.nick_characters = string.ascii_letters + string.digits + _special

◆ numeric_events

dictionary webkitpy.thirdparty.irc.irclib.numeric_events

◆ protocol_events

list webkitpy.thirdparty.irc.irclib.protocol_events
Initial value:
1 = [
2  # IRC protocol events
3  "error",
4  "join",
5  "kick",
6  "mode",
7  "part",
8  "ping",
9  "privmsg",
10  "privnotice",
11  "pubmsg",
12  "pubnotice",
13  "quit",
14  "invite",
15  "pong",
16 ]

◆ VERSION

int webkitpy.thirdparty.irc.irclib.VERSION = 0, 4, 8