]> PatchyGit - patchyircd.git/commitdiff
irc: exclude the initial colon from the parsed source
authorEgor <egor@patchysicp.xyz>
Thu, 12 Feb 2026 15:18:46 +0000 (17:18 +0200)
committerEgor <egor@patchysicp.xyz>
Thu, 12 Feb 2026 15:18:46 +0000 (17:18 +0200)
src/irc.cpp

index d2bec40..34eb124 100644 (file)
@@ -129,7 +129,7 @@ bool irc_parse_line(Client *client, char *p, char *end) {
                        }
                }
                if (*p == ':') {
-                       source = p;
+                       source = ++p;
                        while (*p != ' ' && *p != '\n')
                                p++;
                        if (*p++ == '\n') {