Minor updates.

This commit is contained in:
Jeremy Fincher 2003-10-04 12:31:59 +00:00
parent 71fcfb8db9
commit 43e41f4c51
1 changed files with 0 additions and 4 deletions

View File

@ -159,15 +159,11 @@ class IrcMsg(object):
return self._str
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:
return self._len
self._len = 0
if self.prefix:
self._len += len(self.prefix)
## else:
## self._len += 42
self._len += len(self.command)
if self.args:
for arg in self.args: