summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-10-30 21:04:38 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-10-30 21:04:38 +0000
commit363f35dab5293ee89b870df8effd09249d024576 (patch)
tree82fa01195c8cfe635bcef3a28f0b51ebfef0d424 /src/modules.c
parenteef62fc56ba6df5690830206d5341cbd5be91612 (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 'src/modules.c')
-rw-r--r--src/modules.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/modules.c b/src/modules.c
index 8a5ab1b..677eb82 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -97,7 +97,8 @@ unload_one_module(const char *name, int warn)
if (warn == 1)
{
ilog(LOG_TYPE_IRCD, "Module %s unloaded", name);
- sendto_realops_flags(UMODE_ALL, L_ALL, "Module %s unloaded", name);
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
+ "Module %s unloaded", name);
}
return 0;
@@ -122,7 +123,8 @@ load_a_module(const char *path, int warn)
if (!(tmpptr = lt_dlopen(path))) {
const char *err = ((err = lt_dlerror())) ? err : "<unknown>";
- sendto_realops_flags(UMODE_ALL, L_ALL, "Error loading module %s: %s",
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
+ "Error loading module %s: %s",
mod_basename, err);
ilog(LOG_TYPE_IRCD, "Error loading module %s: %s", mod_basename, err);
return -1;
@@ -132,7 +134,8 @@ load_a_module(const char *path, int warn)
{
const char *err = ((err = lt_dlerror())) ? err : "<unknown>";
- sendto_realops_flags(UMODE_ALL, L_ALL, "Error loading module %s: %s",
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
+ "Error loading module %s: %s",
mod_basename, err);
ilog(LOG_TYPE_IRCD, "Error loading module %s: %s", mod_basename, err);
lt_dlclose(tmpptr);
@@ -152,7 +155,7 @@ load_a_module(const char *path, int warn)
if (warn == 1)
{
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"Module %s [version: %s handle: %p] loaded.",
modp->name, modp->version, tmpptr);
ilog(LOG_TYPE_IRCD, "Module %s [version: %s handle: %p] loaded.",
@@ -394,7 +397,7 @@ load_one_module(const char *path)
return load_a_module(modpath, 1);
}
- sendto_realops_flags(UMODE_ALL, L_ALL,
+ sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
"Cannot locate module %s", path);
ilog(LOG_TYPE_IRCD, "Cannot locate module %s", path);
return -1;