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:
parent
dc7edf542a
commit
0977268070
2
utils.py
2
utils.py
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user