97 |
|
if (warn == 1) |
98 |
|
{ |
99 |
|
ilog(LOG_TYPE_IRCD, "Module %s unloaded", name); |
100 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, "Module %s unloaded", name); |
100 |
> |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
101 |
> |
"Module %s unloaded", name); |
102 |
|
} |
103 |
|
|
104 |
|
return 0; |
123 |
|
if (!(tmpptr = lt_dlopen(path))) { |
124 |
|
const char *err = ((err = lt_dlerror())) ? err : "<unknown>"; |
125 |
|
|
126 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, "Error loading module %s: %s", |
126 |
> |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
127 |
> |
"Error loading module %s: %s", |
128 |
|
mod_basename, err); |
129 |
|
ilog(LOG_TYPE_IRCD, "Error loading module %s: %s", mod_basename, err); |
130 |
|
return -1; |
134 |
|
{ |
135 |
|
const char *err = ((err = lt_dlerror())) ? err : "<unknown>"; |
136 |
|
|
137 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, "Error loading module %s: %s", |
137 |
> |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
138 |
> |
"Error loading module %s: %s", |
139 |
|
mod_basename, err); |
140 |
|
ilog(LOG_TYPE_IRCD, "Error loading module %s: %s", mod_basename, err); |
141 |
|
lt_dlclose(tmpptr); |
155 |
|
|
156 |
|
if (warn == 1) |
157 |
|
{ |
158 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, |
158 |
> |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
159 |
|
"Module %s [version: %s handle: %p] loaded.", |
160 |
|
modp->name, modp->version, tmpptr); |
161 |
|
ilog(LOG_TYPE_IRCD, "Module %s [version: %s handle: %p] loaded.", |
397 |
|
return load_a_module(modpath, 1); |
398 |
|
} |
399 |
|
|
400 |
< |
sendto_realops_flags(UMODE_ALL, L_ALL, |
400 |
> |
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
401 |
|
"Cannot locate module %s", path); |
402 |
|
ilog(LOG_TYPE_IRCD, "Cannot locate module %s", path); |
403 |
|
return -1; |