]> PatchyGit - patchyircd.git/commitdiff
fix +B in WHOIS
authorEgor <egor@patchysicp.xyz>
Fri, 3 Feb 2023 19:53:57 +0000 (21:53 +0200)
committerEgor <egor@patchysicp.xyz>
Fri, 3 Feb 2023 19:53:57 +0000 (21:53 +0200)
irc.c

diff --git a/irc.c b/irc.c
index 897ebd9..2806034 100644 (file)
--- a/irc.c
+++ b/irc.c
@@ -1069,7 +1069,7 @@ int processPacket(struct client_data *client, char *source, char *command, int a
                        if (client == cl || client->umode & UMODE_OPER)
                                rpl_whoisactually(client, cl), sendbuf(client);
                        rpl_whoismodes(client, cl), sendbuf(client);
-                       if (client->umode & UMODE_BOT)
+                       if (cl->umode & UMODE_BOT)
                                rpl_whoisbot(client, cl), sendbuf(client);
                        rpl_endofwhois(client, cl), sendbuf(client);
                } else {