]> PatchyGit - patchyircd.git/commitdiff
minor adjustments to rpl_localusers/rpl_globalusers
authorEgor <egor@patchysicp.xyz>
Tue, 23 Jan 2024 01:19:51 +0000 (03:19 +0200)
committerEgor <egor@patchysicp.xyz>
Tue, 23 Jan 2024 01:19:51 +0000 (03:19 +0200)
src/irc.c
src/ircfmt.c
src/ircfmt.h

index 4f8f505..2705ad6 100644 (file)
--- a/src/irc.c
+++ b/src/irc.c
@@ -1230,8 +1230,8 @@ void sendLUSERS(struct client_data *client)
        rpl_luserunknown(client, total-registered), sendbuf(client);
        rpl_luserchannels(client, channels), sendbuf(client);
        rpl_luserme(client, registered, 0), sendbuf(client);
-       rpl_localusers(client, registered, 666), sendbuf(client);
-       rpl_globalusers(client, registered, 666), sendbuf(client);
+       rpl_localusers(client, registered, 69), sendbuf(client);
+       rpl_globalusers(client, registered, 69), sendbuf(client);
 }
 
 void sendMOTD(struct client_data *client) {
index 9a8aed7..ef2ab75 100644 (file)
@@ -214,12 +214,12 @@ void rpl_tryagain(struct client_data *client, const char *command) // 263
                        hostname, client->nick, command);
 }
 #endif
-void rpl_localusers(struct client_data *client, int current, int max) // 266
+void rpl_localusers(struct client_data *client, int current, int max) // 265
 {
        copy_strf(&databuf, ":%s 265 %s :Current local users %u, max %u\r\n",
                        hostname, client->nick, current, max, current, max);
 }
-void rpl_globalusers(struct client_data *client, int current, int max) // 267
+void rpl_globalusers(struct client_data *client, int current, int max) // 266
 {
        copy_strf(&databuf, ":%s 266 %s %u %u :Current global users %u, max %u\r\n",
                        hostname, client->nick, current, max, current, max);
index 0163421..54b728f 100644 (file)
@@ -38,8 +38,8 @@ void rpl_adminloc1(struct client_data *client, const char *loc); // 257
 void rpl_adminloc2(struct client_data *client, const char *loc); // 258
 void rpl_adminemail(struct client_data *client, const char *email); // 259
 void rpl_tryagain(struct client_data *client, const char *command); // 263
-void rpl_localusers(struct client_data *client, int current, int max); // 266
-void rpl_globalusers(struct client_data *client, int current, int max); // 267
+void rpl_localusers(struct client_data *client, int current, int max); // 265
+void rpl_globalusers(struct client_data *client, int current, int max); // 266
 void rpl_whoiscertfp(struct client_data *client, struct client_data *cl, const char *certfp); // 276
 void rpl_none(struct client_data *client, const char *line); // 300
 void rpl_away(struct client_data *client, struct client_data *cl); // 301
@@ -58,7 +58,6 @@ void rpl_whoisidle(struct client_data *client, struct client_data *cl); // 317
 void rpl_endofwhois(struct client_data *client, struct client_data *cl); // 318
 void rpl_whoischannels(struct client_data *client, struct client_data *cl, struct channel *chan); // 319
 void rpl_whoisspecial(struct client_data *client, struct client_data *cl, const char *info); // 320
-void rpl_whoisspecial(struct client_data *client, struct client_data *cl, const char *info); // 320
 void rpl_liststart(struct client_data *client); // 321
 void rpl_list(struct client_data *client, struct channel *chan); // 322
 void rpl_listend(struct client_data *client); // 323