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-8/src/modules.c (file contents), Revision 1574 by michael, Wed Oct 17 22:08:15 2012 UTC vs.
ircd-hybrid/trunk/src/modules.c (file contents), Revision 1646 by michael, Wed Nov 7 21:02:43 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 144 | Line 147 | load_a_module(const char *path, int warn
147    if (EmptyString(modp->version))
148      modp->version = unknown_ver;
149  
150 <  DupString(modp->name, mod_basename);
150 >  modp->name = xstrdup(mod_basename);
151    dlinkAdd(modp, &modp->node, &modules_list);
152  
153    if (modp->modinit)
# 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)