diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-10-30 21:04:38 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2012-10-30 21:04:38 +0000 |
commit | 363f35dab5293ee89b870df8effd09249d024576 (patch) | |
tree | 82fa01195c8cfe635bcef3a28f0b51ebfef0d424 /modules/m_module.c | |
parent | eef62fc56ba6df5690830206d5341cbd5be91612 (diff) |
- Made m_globops() and ms_globops() use sendto_realops_flags()
- Added message-type parameter to sendto_realops_flags() which can be one of
SEND_NOTICE, SEND_GLOBAL, SEND_LOCOPS
- Forward-port -r1617
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1618 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_module.c')
-rw-r--r-- | modules/m_module.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/m_module.c b/modules/m_module.c index a3a2d34..755810c 100644 --- a/modules/m_module.c +++ b/modules/m_module.c @@ -165,7 +165,7 @@ mo_module(struct Client *client_p, struct Client *source_p, load_conf_modules(); load_core_modules(0); - sendto_realops_flags(UMODE_ALL, L_ALL, + sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, "Module Restart: %u modules unloaded, %u modules loaded", modnum, dlink_list_length(&modules_list)); ilog(LOG_TYPE_IRCD, "Module Restart: %u modules unloaded, %u modules loaded", @@ -199,7 +199,8 @@ mo_module(struct Client *client_p, struct Client *source_p, if ((load_one_module(parv[2]) == -1) && check_core) { - sendto_realops_flags(UMODE_ALL, L_ALL, "Error reloading core " + sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, + "Error reloading core " "module: %s: terminating ircd", parv[2]); ilog(LOG_TYPE_IRCD, "Error loading core module %s: terminating ircd", parv[2]); exit(0); |