mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 12:12:53 +01:00
Irc: oops, wrapModes() needs to be a classmethod
This commit is contained in:
parent
5843eebba2
commit
d1d3c3ef15
@ -858,8 +858,8 @@ class Irc():
|
|||||||
modelist += ' %s' % ' '.join(args)
|
modelist += ' %s' % ' '.join(args)
|
||||||
return modelist
|
return modelist
|
||||||
|
|
||||||
@staticmethod
|
@classmethod
|
||||||
def wrapModes(modes, limit):
|
def wrapModes(cls, modes, limit):
|
||||||
"""
|
"""
|
||||||
Takes a list of modes and wraps it across multiple lines.
|
Takes a list of modes and wraps it across multiple lines.
|
||||||
"""
|
"""
|
||||||
@ -916,7 +916,7 @@ class Irc():
|
|||||||
else:
|
else:
|
||||||
# Otherwise, create a new message by joining the previous queue.
|
# Otherwise, create a new message by joining the previous queue.
|
||||||
# Then, add our current mode.
|
# Then, add our current mode.
|
||||||
strings.append(self.joinModes(queued_modes))
|
strings.append(cls.joinModes(queued_modes))
|
||||||
queued_modes.clear()
|
queued_modes.clear()
|
||||||
|
|
||||||
log.debug('wrapModes: cleared queue (length %s) and now adding %s', limit, str(next_mode))
|
log.debug('wrapModes: cleared queue (length %s) and now adding %s', limit, str(next_mode))
|
||||||
@ -924,7 +924,7 @@ class Irc():
|
|||||||
total_length = next_length
|
total_length = next_length
|
||||||
else:
|
else:
|
||||||
# Everything fit in one line, so just use that.
|
# Everything fit in one line, so just use that.
|
||||||
strings.append(self.joinModes(queued_modes))
|
strings.append(cls.joinModes(queued_modes))
|
||||||
|
|
||||||
log.debug('wrapModes: returning %s for %s', strings, orig_modes)
|
log.debug('wrapModes: returning %s for %s', strings, orig_modes)
|
||||||
return strings
|
return strings
|
||||||
|
Loading…
Reference in New Issue
Block a user