Skip to content

Commit

Permalink
Add grammar to channel status
Browse files Browse the repository at this point in the history
Found by: jackal
Patch by: jackal

Fix log output for channel ("1 channels" -> "1 channel")
  • Loading branch information
michaelortmann authored Dec 31, 2023
1 parent eb4ec42 commit 22eace0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ static void init_random(void) {

int main(int arg_c, char **arg_v)
{
int i, xx;
int i, j, xx;
char s[25];
FILE *f;
struct sigaction sv;
Expand Down Expand Up @@ -1136,8 +1136,9 @@ int main(int arg_c, char **arg_v)
i = 0;
for (chan = chanset; chan; chan = chan->next)
i++;
putlog(LOG_MISC, "*", "=== %s: %d channels, %d users.",
botnetnick, i, count_users(userlist));
j = count_users(userlist);
putlog(LOG_MISC, "*", "=== %s: %d channel%s, %d user%s.",
botnetnick, i, (i == 1) ? "" : "s", j, (j == 1) ? "" : "s");
if ((cliflags & CLI_N) && (cliflags & CLI_T)) {
printf("\n");
printf("NOTE: The -n flag is no longer used, it is as effective as Han\n");
Expand Down

0 comments on commit 22eace0

Please sign in to comment.