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

p10: warn when receiving an invalid subcommand with use_extended_accounts=true

This commit is contained in:
James Lu 2020-03-08 16:29:16 -07:00
parent a8f0bd4fb7
commit 475349dc39

View File

@ -1279,6 +1279,10 @@ class P10Protocol(IRCS2SProtocol):
accountname = args[2]
elif args[1] == 'U':
accountname = '' # logout
elif len(args[1]) > 1:
log.warning('(%s) Got subcommand %r for %s in ACCOUNT message, is use_extended_accounts set correctly?',
self.name, args[1], target)
return
else:
return