3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-17 23:52:49 +01:00

Revert "NetworkCoreWUtils: strip off leading and trailing quotes from parse_modes"

This was a band-aid fix not ready to be committed - we should work on this in IRCParser and opercmds instead.

This reverts commit aeaee491f3.
This commit is contained in:
James Lu 2017-10-10 22:33:24 -07:00
parent fdaee37b7b
commit a9916a74f2

View File

@ -560,13 +560,6 @@ class PyLinkNetworkCoreWithUtils(PyLinkNetworkCore):
args = args.split() args = args.split()
assert args, 'No valid modes were supplied!' assert args, 'No valid modes were supplied!'
# Strip off matching quotes from argparse and friends. We don't use str.strip()
# because that might remove quotes that actually belong at the end of a string
# (e.g. text filter args)
if args.startswith(("'", '"')) and args.endswith(("'", '"')):
args = args[1:-1]
usermodes = not self.is_channel(target) usermodes = not self.is_channel(target)
prefix = '' prefix = ''
modestring = args[0] modestring = args[0]