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

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

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

revision 977 by michael, Mon Jul 20 23:18:04 2009 UTC revision 978 by michael, Sun Aug 9 09:47:58 2009 UTC
# Line 318  load_core_modules(int warn) Line 318  load_core_modules(int warn)
318   * side effects - module is loaded if found.   * side effects - module is loaded if found.
319   */   */
320  int  int
321  load_one_module(char *path, int coremodule)  load_one_module(const char *path, int coremodule)
322  {  {
323    dlink_node *ptr = NULL;    dlink_node *ptr = NULL;
324    char modpath[PATH_MAX + 1];    char modpath[PATH_MAX + 1];
# Line 358  static void Line 358  static void
358  mo_modload(struct Client *client_p, struct Client *source_p,  mo_modload(struct Client *client_p, struct Client *source_p,
359             int parc, char *parv[])             int parc, char *parv[])
360  {  {
361    char *m_bn;    const char *m_bn = NULL;
362    
363    if (!IsAdmin(source_p))    if (!IsAdmin(source_p))
364    {    {
# Line 367  mo_modload(struct Client *client_p, stru Line 367  mo_modload(struct Client *client_p, stru
367      return;      return;
368    }    }
369    
370    m_bn = basename(parv[1]);    m_bn = libio_basename(parv[1]);
371    
372    if (findmodule_byname(m_bn) != NULL)    if (findmodule_byname(m_bn) != NULL)
373    {    {
# Line 384  static void Line 384  static void
384  mo_modunload(struct Client *client_p, struct Client *source_p,  mo_modunload(struct Client *client_p, struct Client *source_p,
385               int parc, char *parv[])               int parc, char *parv[])
386  {  {
387    char *m_bn;    const char *m_bn = NULL;
388    dlink_node *ptr;    dlink_node *ptr;
389    struct module *modp;    struct module *modp;
390    
# Line 395  mo_modunload(struct Client *client_p, st Line 395  mo_modunload(struct Client *client_p, st
395      return;      return;
396    }    }
397    
398    m_bn = basename(parv[1]);    m_bn = libio_basename(parv[1]);
399    
400    if ((ptr = findmodule_byname(m_bn)) == NULL)    if ((ptr = findmodule_byname(m_bn)) == NULL)
401    {    {
# Line 428  static void Line 428  static void
428  mo_modreload(struct Client *client_p, struct Client *source_p,  mo_modreload(struct Client *client_p, struct Client *source_p,
429               int parc, char *parv[])               int parc, char *parv[])
430  {  {
431    char *m_bn;    const char *m_bn = NULL;
432    dlink_node *ptr;    dlink_node *ptr;
433    struct module *modp;    struct module *modp;
434    int check_core;    int check_core;
# Line 440  mo_modreload(struct Client *client_p, st Line 440  mo_modreload(struct Client *client_p, st
440      return;      return;
441    }    }
442    
443    m_bn = basename(parv[1]);    m_bn = libio_basename(parv[1]);
444    
445    if ((ptr = findmodule_byname(m_bn)) == NULL)    if ((ptr = findmodule_byname(m_bn)) == NULL)
446    {    {

Legend:
Removed from v.977  
changed lines
  Added in v.978

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