mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-03 01:39:23 +01:00
Minor updates.
This commit is contained in:
parent
71fcfb8db9
commit
43e41f4c51
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user