diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-05-05 19:52:21 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-05-05 19:52:21 +0000 |
commit | 6175b75de01fabe2e5eae0a636bf807a5bc57580 (patch) | |
tree | d5bb3d20712dc68af95774228c0e970ee466e1d4 | |
parent | 7a71e7191b073eff19db6e3ccaec8882ba25d29b (diff) |
- m_die(), m_restart(): use get_client_name() instead of get_oper_name()
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3487 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r-- | modules/core/m_die.c | 4 | ||||
-rw-r--r-- | modules/m_restart.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/core/m_die.c b/modules/core/m_die.c index 463ccb0..4e256ea 100644 --- a/modules/core/m_die.c +++ b/modules/core/m_die.c @@ -43,7 +43,7 @@ static int mo_die(struct Client *client_p, struct Client *source_p, int parc, char *parv[]) { - char buf[IRCD_BUFSIZE]; + char buf[IRCD_BUFSIZE] = ""; if (!HasOFlag(source_p, OPER_FLAG_DIE)) { @@ -67,7 +67,7 @@ mo_die(struct Client *client_p, struct Client *source_p, } snprintf(buf, sizeof(buf), "received DIE command from %s", - get_oper_name(source_p)); + get_client_name(source_p, HIDE_IP)); server_die(buf, 0); return 0; } diff --git a/modules/m_restart.c b/modules/m_restart.c index e5c5995..657e0f8 100644 --- a/modules/m_restart.c +++ b/modules/m_restart.c @@ -44,7 +44,7 @@ static int mo_restart(struct Client *client_p, struct Client *source_p, int parc, char *parv[]) { - char buf[IRCD_BUFSIZE]; + char buf[IRCD_BUFSIZE] = ""; if (!HasOFlag(source_p, OPER_FLAG_RESTART)) { @@ -68,7 +68,7 @@ mo_restart(struct Client *client_p, struct Client *source_p, } snprintf(buf, sizeof(buf), "received RESTART command from %s", - get_oper_name(source_p)); + get_client_name(source_p, HIDE_IP)); server_die(buf, 1); return 0; } |