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

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

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

revision 574 by adx, Mon Nov 14 19:39:09 2005 UTC revision 575 by michael, Mon May 1 11:41:09 2006 UTC
# Line 89  do_links(struct Client *source_p, int pa Line 89  do_links(struct Client *source_p, int pa
89      char clean_mask[2 * HOSTLEN + 4];      char clean_mask[2 * HOSTLEN + 4];
90      dlink_node *ptr;      dlink_node *ptr;
91    
92      if (mask == NULL)      if (!EmptyString(mask))    /* only necessary if there is a mask */
       mask = "";  
     if (*mask)       /* only necessary if there is a mask */  
93        mask = collapse(clean_string(clean_mask, (const unsigned char*) mask, 2 * HOSTLEN));        mask = collapse(clean_string(clean_mask, (const unsigned char*) mask, 2 * HOSTLEN));
94    
95      me_name = ID_or_name(&me, source_p->from);      me_name = ID_or_name(&me, source_p->from);
# Line 101  do_links(struct Client *source_p, int pa Line 99  do_links(struct Client *source_p, int pa
99      {      {
100        target_p = ptr->data;        target_p = ptr->data;
101    
102        if (*mask && !match(mask, target_p->name))        if (!EmptyString(mask) && !match(mask, target_p->name))
103          continue;          continue;
104        
105        if (target_p->info[0])        if (target_p->info[0])
106        {        {
107          if ((p = strchr(target_p->info, ']')))          if ((p = strchr(target_p->info, ']')))

Legend:
Removed from v.574  
changed lines
  Added in v.575

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