3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

utils: fix error handling in parseModes

This commit is contained in:
James Lu 2015-10-08 20:59:31 -07:00
parent 8bde21f1e6
commit c0eab152e4

View File

@ -220,7 +220,7 @@ def parseModes(irc, target, args):
arg = nickToUid(irc, arg) or arg
if arg not in irc.users: # Target doesn't exist, skip it.
log.debug('(%s) Skipping setting mode "%s %s"; the '
'target doesn\'t seem to exist!', self.name,
'target doesn\'t seem to exist!', irc.name,
mode, arg)
continue
elif prefix == '+' and mode in supported_modes['*C']: