106 |
|
if (warn == 1) |
107 |
|
{ |
108 |
|
ilog(LOG_TYPE_IRCD, "Module %s unloaded", name); |
109 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
109 |
> |
sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE, |
110 |
|
"Module %s unloaded", name); |
111 |
|
} |
112 |
|
|
133 |
|
{ |
134 |
|
const char *err = ((err = lt_dlerror())) ? err : "<unknown>"; |
135 |
|
|
136 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
136 |
> |
sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE, |
137 |
|
"Error loading module %s: %s", |
138 |
|
mod_basename, err); |
139 |
|
ilog(LOG_TYPE_IRCD, "Error loading module %s: %s", mod_basename, err); |
144 |
|
{ |
145 |
|
const char *err = ((err = lt_dlerror())) ? err : "<unknown>"; |
146 |
|
|
147 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
147 |
> |
sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE, |
148 |
|
"Error loading module %s: %s", |
149 |
|
mod_basename, err); |
150 |
|
ilog(LOG_TYPE_IRCD, "Error loading module %s: %s", mod_basename, err); |
165 |
|
|
166 |
|
if (warn == 1) |
167 |
|
{ |
168 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
168 |
> |
sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE, |
169 |
|
"Module %s [version: %s handle: %p] loaded.", |
170 |
|
modp->name, modp->version, tmpptr); |
171 |
|
ilog(LOG_TYPE_IRCD, "Module %s [version: %s handle: %p] loaded.", |
406 |
|
return load_a_module(path, 1); |
407 |
|
} |
408 |
|
|
409 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
409 |
> |
sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE, |
410 |
|
"Cannot locate module %s", name); |
411 |
|
ilog(LOG_TYPE_IRCD, "Cannot locate module %s", name); |
412 |
|
return -1; |