Table of Contents

Module: irc | Twisted-0.17.4/twisted/protocols/irc.py
--- | ---

Internet Relay Chat Protocol implementation

References: * RFC 1459: Internet Relay Chat Protocol

- RFC 2812: Internet Relay Chat: Client Protocol

- The Client-To-Client-Protocol http://www.irchelp.org/irchelp/rfc/ctcpspec.html

Imported modules |
--- | ---
import errno import operator import os from os import path import random import re import shutil import stat import string import struct import sys import tempfile import time import traceback from twisted.internet import tcp from twisted.persisted import styles from twisted.protocols import basic, protocol from twisted.python import log, reflect import types
Functions |

ctcpDequote ctcpExtract ctcpQuote ctcpStringify dccDescribe | fileMove fileSize lowDequote lowQuote parsemsg

| ctcpDequote

    ctcpDequote ( s )

| ctcpExtract

    ctcpExtract ( message )

### Extract CTCP data from a string.

Returns a dictionary with two items: 'extended': a list of CTCP (tag, data) tuples 'normal': a list of strings which were not inside a CTCP delimeter

| ctcpQuote

    ctcpQuote ( s )

| ctcpStringify

    ctcpStringify ( messages )

| dccDescribe

    dccDescribe ( data )

Given the data chunk from a DCC query, return a descriptive string.

| fileMove

    fileMove ( src,  dst )

### Move a file.

Unlike os.rename, this works even if the source and destination paths are on different filesystems. It does so by falling back to copy & remove if a rename fails.

| fileSize

    fileSize ( file )

I'll try my damndest to determine the size of this file object.

| lowDequote

    lowDequote ( s )

| lowQuote

    lowQuote ( s )

| parsemsg

    parsemsg ( s )

Breaks a message from an IRC server into its prefix, command, and arguments.

Classes |

DccChat | Direct Client Connection protocol type CHAT.
DccFileReceive | Higher-level coverage for getting a file from DCC SEND.
DccFileReceiveBasic | Bare protocol to receive a Direct Client Connection SEND stream.
DccSendFactory |
DccSendProtocol | Protocol for an outgoing Direct Client Connection SEND.
IRC | Internet Relay Chat server protocol.
IRCBadMessage |
IRCClient | Internet Relay Chat client protocol, with sprinkles.

Table of Contents

This document was automatically generated on Sat Apr 20 01:31:04 2002 by HappyDoc version 2.0