/[svn]/ircd-hybrid/trunk/src/client.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/src/client.c

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

revision 2362 by michael, Wed Jul 3 18:17:39 2013 UTC revision 2363 by michael, Thu Jul 4 21:29:23 2013 UTC
# Line 1107  del_accept(struct split_nuh_item *accept Line 1107  del_accept(struct split_nuh_item *accept
1107    
1108  struct split_nuh_item *  struct split_nuh_item *
1109  find_accept(const char *nick, const char *user,  find_accept(const char *nick, const char *user,
1110              const char *host, struct Client *client_p, int do_match)              const char *host, struct Client *client_p,
1111                int (*cmpfunc)(const char *, const char *))
1112  {  {
1113    dlink_node *ptr = NULL;    dlink_node *ptr = NULL;
   /* XXX We wouldn't need that if match() would return 0 on match */  
   int (*cmpfunc)(const char *, const char *) = do_match ? match : irccmp;  
1114    
1115    DLINK_FOREACH(ptr, client_p->localClient->acceptlist.head)    DLINK_FOREACH(ptr, client_p->localClient->acceptlist.head)
1116    {    {
# Line 1140  accept_message(struct Client *source, Line 1139  accept_message(struct Client *source,
1139    dlink_node *ptr = NULL;    dlink_node *ptr = NULL;
1140    
1141    if (source == target || find_accept(source->name, source->username,    if (source == target || find_accept(source->name, source->username,
1142                                        source->host, target, 1))                                        source->host, target, match))
1143      return 1;      return 1;
1144    
1145    if (HasUMode(target, UMODE_SOFTCALLERID))    if (HasUMode(target, UMODE_SOFTCALLERID))

Legend:
Removed from v.2362  
changed lines
  Added in v.2363

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