]> PatchyGit - patchyircd.git/commitdiff
irc: notify ircops on account creation
authorEgor <egor@patchysicp.xyz>
Sat, 14 Feb 2026 05:19:35 +0000 (07:19 +0200)
committerEgor <egor@patchysicp.xyz>
Sat, 14 Feb 2026 05:19:35 +0000 (07:19 +0200)
src/irc.cpp

index 7d7d998..6aed8b6 100644 (file)
@@ -546,6 +546,10 @@ saslcleanup:
                msg_notice_server(hostname, client->nick,
                                "Your information has been recorded. Contact IRCops for assistance with registration.");
                sendbuf(client);
+               copy_strf(&databuf, ":%s NOTICE * :Account '%s' pending registration (%s from %s)\r\n", hostname, args[0], client->nuh, client->peername);      
+               for (auto cl : client_map)
+                       if (cl->umode & UMODE_OPER)
+                               sendbuf(cl);
        } MATCH_COMMAND("GHOST") {
                if (!(client->umode & UMODE_REGISTERED))
                        return false; // FIXME: error message