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

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

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

revision 34 by lusky, Sun Oct 2 21:05:51 2005 UTC revision 157 by adx, Tue Oct 18 06:33:24 2005 UTC
# Line 62  register_callback(const char *name, CBFU Line 62  register_callback(const char *name, CBFU
62    if (name != NULL)    if (name != NULL)
63      if ((cb = find_callback(name)) != NULL)      if ((cb = find_callback(name)) != NULL)
64      {      {
65        /* re-attaching an empty hook chain? */        if (func != NULL)
       if (!is_callback_present(cb))  
       {  
66          dlinkAdd(func, MyMalloc(sizeof(dlink_node)), &cb->chain);          dlinkAdd(func, MyMalloc(sizeof(dlink_node)), &cb->chain);
         return (cb);  
       }  
67        return (NULL);        return (NULL);
68      }      }
69    

Legend:
Removed from v.34  
changed lines
  Added in v.157

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