diff options
Diffstat (limited to 'modules/m_restart.c')
-rw-r--r-- | modules/m_restart.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |