Skip to content

Commit

Permalink
Docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
richo committed Jan 19, 2012
1 parent cf9f6a5 commit a87c1d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ircSocket.py
Expand Up @@ -57,6 +57,9 @@ def _load_modules():
RE_INFO_MATCH = re.compile(r":([^! ]+)!([^@ ]+)@([A-Za-z0-9_\.-]+)")

class irc_data(object):
"""A proxy to coerce datatypes more appropriately for comparisons,
ultimately delegating to the data itself if it can't find anything better
to do with it"""
def __init__(self, data):
self.data = data

Expand All @@ -75,6 +78,7 @@ def __eq__(self, cmp):


class Message(object):
"""Reprsentation of a single message from an ircd"""
def __init__(self, msg):
self.msg = msg
self.data_segment = None
Expand Down Expand Up @@ -151,6 +155,7 @@ def dump(self):
"--"])

class chatnet(object):
"""Representation of a single connection to an ircd"""
def __init__(self, host, port=6667, use_ssl=False):
self.auth_host = ''
self.auth_hash = ''
Expand Down

0 comments on commit a87c1d1

Please sign in to comment.