From af98c0c12e39de8b2567c02d49d18d9f6f93482e Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 6 Feb 2018 15:35:49 +0100 Subject: [PATCH] Allow MODE arguments that do not start with a + or a -. --- src/ircutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ircutils.py b/src/ircutils.py index 975453dcc..71cf1bbe6 100644 --- a/src/ircutils.py +++ b/src/ircutils.py @@ -254,9 +254,9 @@ def separateModes(args): if not args: return [] modes = args[0] - assert modes[0] in '+-', 'Invalid args: %r' % args args = list(args[1:]) ret = [] + last = '+' for c in modes: if c in '+-': last = c