]> PatchyGit - patchyircd.git/commitdiff
rpl_whoreply: move bot flag to the end
authorEgor <egor@patchysicp.xyz>
Fri, 27 Oct 2023 16:02:56 +0000 (19:02 +0300)
committerEgor <egor@patchysicp.xyz>
Fri, 27 Oct 2023 16:02:56 +0000 (19:02 +0300)
src/ircfmt.c

index d2b519f..fc3affe 100644 (file)
@@ -249,8 +249,9 @@ void rpl_whoreply(struct client_data *client, struct client_data *cl, struct cha
 {
        copy_strf(&databuf, ":%s 352 %s %s %s %s %s %s %s%s%s%s :1 %s\r\n",
                        hostname, client->nick, chan ? chan->name : "*", cl->username, cl->hostname, hostname, cl->nick,
-                       cl->away ? "G" : "H", cl->umode&UMODE_BOT ? "B" : "",
-                       cl->umode&UMODE_OPER ? "*" : "", format_prefixes(client, cl, chan), cl->realname);
+                       cl->away ? "G" : "H", cl->umode&UMODE_OPER ? "*" : "", format_prefixes(client, cl, chan),
+                       cl->umode&UMODE_BOT ? "B" : "",
+                       cl->realname);
 }
 void rpl_endofwho(struct client_data *client, const char *query) // 315
 {