This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Undernet IRC Server Source Code.".
The branch, u2_10_12_branch has been updated
via 1f5142dc4133a2885ac221d51977b542c5680a97 (commit)
from b71fd1ea4c3cd884fe813aaa945d27f3bf4f80f2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1f5142dc4133a2885ac221d51977b542c5680a97
Author: Michael Poole <[email protected]>
Date: Mon Mar 11 22:37:25 2019 -0400
m_stats: Move test for VARPARAM until after forwarding the command.
This way only the destination server's setting for VARPARAM applies.
diff --git a/ircd/m_stats.c b/ircd/m_stats.c
index a68d0d7f..60c4718e 100644
--- a/ircd/m_stats.c
+++ b/ircd/m_stats.c
@@ -141,7 +141,7 @@ m_stats(struct Client* cptr, struct Client* sptr, int parc,
char* parv[])
return send_reply(sptr, ERR_NOPRIVILEGES);
/* Check for extra parameter */
- if ((sd->sd_flags & STAT_FLAG_VARPARAM) && parc > 3 && !EmptyString(parv[3]))
+ if (parc > 3 && !EmptyString(parv[3]))
param = parv[3];
else
param = NULL;
@@ -156,6 +156,10 @@ m_stats(struct Client* cptr, struct Client* sptr, int
parc, char* parv[])
if ((sd->sd_flags & STAT_FLAG_LOCONLY) && !MyUser(sptr))
return send_reply(sptr, ERR_NOPRIVILEGES);
+ /* Should we ignore "param"? */
+ if (!(sd->sd_flags & STAT_FLAG_VARPARAM))
+ param = NULL;
+
assert(sd->sd_func != 0);
/* Ok, dispatch the stats function */
-----------------------------------------------------------------------
Summary of changes:
ircd/m_stats.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
hooks/post-receive
--
Undernet IRC Server Source Code.
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches