patch bb3b1764cd938721fa5ff776c4e6a2352b6ef105
Author: E. Bosch <presidev@AT@gmail.com>
Date: Thu Feb 4 15:37:25 CET 2021
* irc: Strip unwanted characters from command parameters
diff -rN -u old-irgramd/irc.py new-irgramd/irc.py
--- old-irgramd/irc.py 2024-11-23 01:58:38.861770565 +0100
+++ new-irgramd/irc.py 2024-11-23 01:58:38.861770565 +0100
@@ -67,6 +67,8 @@
matched = True
if user.registered or not register_required:
params = matches.groupdict()
+ # Remove possible extra characters in parameters
+ params = {x:y.strip() for x,y in params.items()}
num_params = len([x for x in params.values() if x])
num_params_expected = len(params.keys())
if num_params >= num_params_expected: