3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

utils.parseModes: don't error if prefix isn't given, assume +

This commit is contained in:
James Lu 2015-07-23 15:04:57 -07:00
parent dc7edf542a
commit 0977268070

View File

@ -189,7 +189,7 @@ def parseModes(irc, target, args):
prefix = mode
else:
if not prefix:
raise ValueError('Invalid query %r: mode char given without preceding prefix.' % modestring)
prefix = '+'
arg = None
log.debug('Current mode: %s%s; args left: %s', prefix, mode, args)
try: