Skip to content

Commit

Permalink
Merge pull request #192 from DALnet/show-uhm-in-info
Browse files Browse the repository at this point in the history
Show UHM variables in /INFO.
  • Loading branch information
eaescob authored Sep 10, 2021
2 parents 7a354c5 + 5523689 commit 160fce8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Changes for 2.2.0:
rasengan (2):
Added /stats P to show listening ports (PR #134)

Ryan Smith (8):
Ryan Smith (9):
Override clone limits with SVSCLONE (PR #148)
Updates to user hostmasking (PR #175)
Do not attempt to mask the Staff_Address for opers. (PR #175)
Expand All @@ -12,6 +12,7 @@ Ryan Smith (8):
Do not allow user mode H to be changed if the user is in any channels. This is to prevent potential client-side weirdness from happening if a user's host changes while they're already in one or more channels. (PR #175)
Send out WATCH notifications if the hostname changes due to a mode H change. (PR #175)
Minor typo fixes.
Show UHM variables in /INFO.

Emilio Escobar (4):
Fixed oper block corruption when two opers share the same IP (PR #181)
Expand Down
6 changes: 4 additions & 2 deletions src/s_serv.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
static char buf[BUFSIZE];
extern int rehashed;
extern int forked;
extern int uhm_type;
extern int uhm_umodeh;

/* external variables */

Expand Down Expand Up @@ -448,14 +450,14 @@ m_info(aClient *cptr, aClient *sptr, int parc, char *parv[])
sendto_one(sptr, ":%s %d %s :zlib version: %s", me.name,
RPL_INFO, parv[0], ZLIB_VERSION);
sendto_one(sptr, ":%s %d %s :FD_SETSIZE=%d WRITEV_IOV=%d "
"MAXCONNECTIONS=%d MAX_BUFFER=%d MAXCLIENTS=%d",
"MAXCONNECTIONS=%d MAX_BUFFER=%d MAXCLIENTS=%d uhm_type=%d uhm_umodeh=%d",
me.name, RPL_INFO, parv[0], FD_SETSIZE,
#ifdef WRITEV_IOV
WRITEV_IOV,
#else
0,
#endif
MAXCONNECTIONS, MAX_BUFFER, MAXCLIENTS);
MAXCONNECTIONS, MAX_BUFFER, MAXCLIENTS, uhm_type, uhm_umodeh);
}

sendto_one(sptr, rpl_str(RPL_INFO), me.name, parv[0], "");
Expand Down

0 comments on commit 160fce8

Please sign in to comment.