patch d689d9ba72a0680d87eca5ed23c26da5438477b5
Author: E. Bosch <presidev@AT@gmail.com>
Date: Thu Nov 19 20:54:39 CET 2020
* Improve the regular expression for USER command, make it compatible with more clients
diff -rN -u old-irgramd/irc.py new-irgramd/irc.py
--- old-irgramd/irc.py 2024-11-23 06:33:33.584018625 +0100
+++ new-irgramd/irc.py 2024-11-23 06:33:33.584018625 +0100
@@ -25,7 +25,7 @@
IRC_PASS_RX = re.compile(r'PASS :(?P<app_id>[^\s]+) (?P<app_hash>[^\n\r]+)')
IRC_PING_RX = re.compile(r'PING (?P<payload>[^\n\r]+)')
IRC_PRIVMSG_RX = re.compile(r'PRIVMSG (?P<nick>[^\s]+) :(?P<message>[^\n\r]+)')
-IRC_USER_RX = re.compile(r'USER (?P<username>[^\s]+) 0 \* :(?P<realname>[^\n\r]+)')
+IRC_USER_RX = re.compile(r'USER (?P<username>[^\s]+) [^\s]+ [^\s]+ :(?P<realname>[^\n\r]+)')
# IRC Handler