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 db6cc9b6c72615df03ad0feb376c0c5571899b94 (commit)
via 10892d89b1455c27505444c90c5cce47c380a681 (commit)
from ae45881f2542b3a063f2ba6940521dfe8a143885 (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 db6cc9b6c72615df03ad0feb376c0c5571899b94
Author: Michael Poole <[email protected]>
Date: Tue Jan 10 23:39:31 2017 -0500
sendto_iauth(): Minor code cleanup.
diff --git a/ircd/s_auth.c b/ircd/s_auth.c
index 1c9a3cd..11be3bc 100644
--- a/ircd/s_auth.c
+++ b/ircd/s_auth.c
@@ -1594,10 +1594,7 @@ static int sendto_iauth(struct Client *cptr, const char
*format, ...)
/* Build the message buffer. */
vd.vd_format = format;
va_start(vd.vd_args, format);
- if (0 == cptr)
- mb = msgq_make(NULL, "-1 %v", &vd);
- else
- mb = msgq_make(NULL, "%d %v", cli_fd(cptr), &vd);
+ mb = msgq_make(NULL, "%d %v", cptr ? cli_fd(cptr) : -1, &vd);
va_end(vd.vd_args);
/* Tack it onto the iauth sendq and try to write it. */
commit 10892d89b1455c27505444c90c5cce47c380a681
Author: Michael Poole <[email protected]>
Date: Tue Jan 10 23:38:29 2017 -0500
ms_xreply: Avoid findNUser() where we might get a server numnick.
If findNUser() gets numnick "Bc", it will try to return the user with
numnick BcAAc.
diff --git a/ircd/m_xreply.c b/ircd/m_xreply.c
index 6ee05f6..f4323d9 100644
--- a/ircd/m_xreply.c
+++ b/ircd/m_xreply.c
@@ -114,7 +114,8 @@ int ms_xreply(struct Client* cptr, struct Client* sptr, int
parc, char* parv[])
reply = parv[3];
/* Look up the target */
- if (!(acptr = findNUser(parv[1])) && !(acptr = FindNServer(parv[1])))
+ acptr = parv[1][2] ? findNUser(parv[1]) : FindNServer(parv[1]);
+ if (!acptr)
return send_reply(sptr, SND_EXPLICIT | ERR_NOSUCHSERVER,
"* :Server has disconnected");
-----------------------------------------------------------------------
Summary of changes:
ircd/m_xreply.c | 3 ++-
ircd/s_auth.c | 5 +----
2 files changed, 3 insertions(+), 5 deletions(-)
hooks/post-receive
--
Undernet IRC Server Source Code.
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches