ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/modules.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/modules.c (file contents):
Revision 1592 by michael, Sat Oct 27 21:02:32 2012 UTC vs.
Revision 1618 by michael, Tue Oct 30 21:04:38 2012 UTC

# Line 97 | Line 97 | unload_one_module(const char *name, int
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;
# Line 122 | Line 123 | load_a_module(const char *path, int warn
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;
# Line 132 | Line 134 | load_a_module(const char *path, int warn
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);
# Line 152 | Line 155 | load_a_module(const char *path, int warn
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.",
# Line 394 | Line 397 | load_one_module(const char *path)
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)