Minor updates.

This commit is contained in:
Jeremy Fincher 2003-10-04 12:31:59 +00:00
parent 71fcfb8db9
commit 43e41f4c51

View File

@ -159,15 +159,11 @@ class IrcMsg(object):
return self._str return self._str
def __len__(self): def __len__(self):
# This might not take into account the length of the prefix, but leaves
# some room for variation.
if self._len is not None: if self._len is not None:
return self._len return self._len
self._len = 0 self._len = 0
if self.prefix: if self.prefix:
self._len += len(self.prefix) self._len += len(self.prefix)
## else:
## self._len += 42
self._len += len(self.command) self._len += len(self.command)
if self.args: if self.args:
for arg in self.args: for arg in self.args: