/[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

ircd-hybrid/src/hook.c revision 33 by knight, Sun Oct 2 20:50:00 2005 UTC ircd-hybrid-7.2/src/hook.c revision 713 by michael, Wed Jul 12 12:37:35 2006 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)
66        if (!is_callback_present(cb))          dlinkAddTail(func, MyMalloc(sizeof(dlink_node)), &cb->chain);
67        {        return (cb);
         dlinkAdd(func, MyMalloc(sizeof(dlink_node)), &cb->chain);  
         return (cb);  
       }  
       return (NULL);  
68      }      }
69    
70    cb = MyMalloc(sizeof(struct Callback));    cb = MyMalloc(sizeof(struct Callback));

Legend:
Removed from v.33  
changed lines
  Added in v.713

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