From 4b5f839231c802dad38621a340c1174f0ce48e6c Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 23 May 2019 16:05:41 +0100 Subject: Forgot `not` so it was stripping alnum chars, not non-almun chars --- modules/commands/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/commands/__init__.py b/modules/commands/__init__.py index 1cc3e63a..d352c256 100644 --- a/modules/commands/__init__.py +++ b/modules/commands/__init__.py @@ -9,7 +9,7 @@ REGEX_ARG_NUMBER = re.compile(r"\$(\d+)(-?)") MSGID_TAG = utils.irc.MessageTag("msgid", "draft/msgid") -NON_ALPHANUMERIC = [char for char in string.printable if char.isalnum()] +NON_ALPHANUMERIC = [char for char in string.printable if not char.isalnum()] def _command_method_validate(s): if s.upper() in COMMAND_METHODS: -- cgit v1.3.1-10-gc9f91