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 d3a0f0a3ae30b815c460002f127e57ed2fa5ad70 (commit)
via 5bb902ff55ae21ccb901da01eb27d53fecfd6764 (commit)
via 90a738f63d69b8be71d3cf2456d539dc6a497e56 (commit)
from 9995250e07b20b4de37ab29b61780d6e8ee47d89 (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 d3a0f0a3ae30b815c460002f127e57ed2fa5ad70
Author: Michael Poole <[email protected]>
Date: Mon Nov 21 23:02:33 2016 -0500
make_oper: Properly log and report the new oper.
diff --git a/ircd/m_opmode.c b/ircd/m_opmode.c
index 4ff019a..e57438c 100644
--- a/ircd/m_opmode.c
+++ b/ircd/m_opmode.c
@@ -100,10 +100,13 @@
/* #include <assert.h> -- Now using assert in ircd_log.h */
-static void make_oper(struct Client *dptr)
+static void make_oper(struct Client *sptr, struct Client *dptr)
{
+ struct Flags old_mode = cli_flags(dptr);
+
++UserStats.opers;
SetOper(dptr);
+
if (MyConnect(dptr))
{
cli_handler(dptr) = OPER_HANDLER;
@@ -111,7 +114,19 @@ static void make_oper(struct Client *dptr)
SetDebug(dptr);
SetServNotice(dptr);
det_confs_butmask(dptr, CONF_CLIENT & ~CONF_OPERATOR);
+ set_snomask(dptr, SNO_OPERDEFAULT, SNO_ADD);
+ cli_max_sendq(dptr) = 0; /* Get the sendq from the oper's class */
client_set_privs(dptr, NULL, 1);
+
+ send_umode_out(dptr, dptr, &old_mode, HasPriv(dptr, PRIV_PROPAGATE));
+ send_reply(dptr, RPL_YOUREOPER);
+
+ sendto_opmask_butone(0, SNO_OLDSNO, "%s (%s@%s) is now operator (%c)",
+ cli_name(dptr), cli_user(dptr)->username,
+ cli_sockhost(dptr), IsOper(dptr) ? 'O' : 'o');
+
+ log_write(LS_OPER, L_INFO, 0, "REMOTE OPER (%#C) by (%s)", dptr,
+ cli_name(sptr));
}
}
@@ -170,7 +185,7 @@ int ms_opmode(struct Client* cptr, struct Client* sptr, int
parc, char* parv[])
* not support remote mode setting or setting +o.
*/
if (!strcmp(parv[2], "+o") && !IsOper(dptr))
- make_oper(dptr);
+ make_oper(sptr, dptr);
else if (!strcmp(parv[2], "-o") && IsOper(dptr))
de_oper(dptr);
commit 5bb902ff55ae21ccb901da01eb27d53fecfd6764
Author: Michael Poole <[email protected]>
Date: Mon Nov 21 22:28:56 2016 -0500
ms_settime: Add missing braces.
diff --git a/ircd/m_settime.c b/ircd/m_settime.c
index 39ec6aa..c76b9f1 100644
--- a/ircd/m_settime.c
+++ b/ircd/m_settime.c
@@ -125,10 +125,11 @@ int ms_settime(struct Client* cptr, struct Client* sptr,
int parc, char* parv[])
{
if (IsServer(sptr)) /* protocol violation if it's from a server */
protocol_violation(sptr, "SETTIME: Bad value (%Tu, delta %ld)", t, dt);
- else
+ else {
sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :SETTIME: Bad value (%Tu, "
"delta %ld)", sptr, t, dt);
sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :SETTIME: Bad value", sptr);
+ }
return 0;
}
commit 90a738f63d69b8be71d3cf2456d539dc6a497e56
Author: Michael Poole <[email protected]>
Date: Mon Nov 21 22:28:30 2016 -0500
example.conf: Fix typo in comment.
diff --git a/doc/example.conf b/doc/example.conf
index fad7ad9..03bf23c 100644
--- a/doc/example.conf
+++ b/doc/example.conf
@@ -428,7 +428,7 @@ motd {
# UWorld {
# # The servername or wildcard mask for it that this applies to.
# name = "relservername";
-# # Servers introduced with "oper" can remotely (de-)oper clienst.
+# # Servers introduced with "oper" can remotely (de-)oper clients.
# oper = "uworld.example.org";
# };
#
-----------------------------------------------------------------------
Summary of changes:
doc/example.conf | 2 +-
ircd/m_opmode.c | 19 +++++++++++++++++--
ircd/m_settime.c | 3 ++-
3 files changed, 20 insertions(+), 4 deletions(-)
hooks/post-receive
--
Undernet IRC Server Source Code.
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches