3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 20:22:45 +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 prefix = mode
else: else:
if not prefix: if not prefix:
raise ValueError('Invalid query %r: mode char given without preceding prefix.' % modestring) prefix = '+'
arg = None arg = None
log.debug('Current mode: %s%s; args left: %s', prefix, mode, args) log.debug('Current mode: %s%s; args left: %s', prefix, mode, args)
try: try: