/[svn]/ircd-hybrid-8/src/modules.c
ViewVC logotype

Diff of /ircd-hybrid-8/src/modules.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1573 by michael, Mon Jun 25 20:22:29 2012 UTC revision 1574 by michael, Wed Oct 17 22:08:15 2012 UTC
# Line 130  load_a_module(const char *path, int warn Line 130  load_a_module(const char *path, int warn
130    
131    if ((modp = lt_dlsym(tmpptr, "module_entry")) == NULL)    if ((modp = lt_dlsym(tmpptr, "module_entry")) == NULL)
132    {    {
133      sendto_realops_flags(UMODE_ALL, L_ALL, "Module %s has no module_entry export",      const char *err = ((err = lt_dlerror())) ? err : "<unknown>";
134                           mod_basename);  
135      ilog(LOG_TYPE_IRCD, "Module %s has no module_entry export", mod_basename);      sendto_realops_flags(UMODE_ALL, L_ALL, "Error loading module %s: %s",
136                             mod_basename, err);
137        ilog(LOG_TYPE_IRCD, "Error loading module %s: %s", mod_basename, err);
138      lt_dlclose(tmpptr);      lt_dlclose(tmpptr);
139      return -1;      return -1;
140    }    }

Legend:
Removed from v.1573  
changed lines
  Added in v.1574

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28