From 7128953b1a04e2218a7773e1628acfa1d93999f2 Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 23 Jan 2024 03:19:51 +0200 Subject: [PATCH] minor adjustments to rpl_localusers/rpl_globalusers --- src/irc.c | 4 ++-- src/ircfmt.c | 4 ++-- src/ircfmt.h | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/irc.c b/src/irc.c index 4f8f505..2705ad6 100644 --- 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) { diff --git a/src/ircfmt.c b/src/ircfmt.c index 9a8aed7..ef2ab75 100644 --- a/src/ircfmt.c +++ b/src/ircfmt.c @@ -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); diff --git a/src/ircfmt.h b/src/ircfmt.h index 0163421..54b728f 100644 --- a/src/ircfmt.h +++ b/src/ircfmt.h @@ -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 -- 2.56.0