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

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

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

revision 1043 by michael, Sun Nov 8 13:03:38 2009 UTC revision 1044 by michael, Tue Jan 26 12:58:17 2010 UTC
# Line 83  do_links(struct Client *source_p, int pa Line 83  do_links(struct Client *source_p, int pa
83  {  {
84    if (IsOper(source_p) || !ConfigServerHide.flatten_links)    if (IsOper(source_p) || !ConfigServerHide.flatten_links)
85    {    {
86      char *mask = (parc > 2 ? parv[2] : parv[1]);      const char *mask = (parc > 2 ? parv[2] : parv[1]);
87      const char *me_name, *nick, *p;      const char *me_name, *nick, *p;
88      struct Client *target_p;      struct Client *target_p;
     char clean_mask[2 * HOSTLEN + 4];  
89      dlink_node *ptr;      dlink_node *ptr;
90    
     if (!EmptyString(mask))    /* only necessary if there is a mask */  
       mask = collapse(clean_string(clean_mask, (const unsigned char*) mask, 2 * HOSTLEN));  
   
91      me_name = ID_or_name(&me, source_p->from);      me_name = ID_or_name(&me, source_p->from);
92      nick = ID_or_name(source_p, source_p->from);      nick = ID_or_name(source_p, source_p->from);
93    
# Line 125  do_links(struct Client *source_p, int pa Line 121  do_links(struct Client *source_p, int pa
121                 me_name, nick,                 me_name, nick,
122                 EmptyString(mask) ? "*" : mask);                 EmptyString(mask) ? "*" : mask);
123    }    }
124    else {    else
125      {
126      /*      /*
127       * Print our own info so at least it looks like a normal links       * Print our own info so at least it looks like a normal links
128       * then print out the file (which may or may not be empty)       * then print out the file (which may or may not be empty)
# Line 162  m_links(struct Client *client_p, struct Line 159  m_links(struct Client *client_p, struct
159                 me.name, source_p->name);                 me.name, source_p->name);
160      return;      return;
161    }    }
162    else  
163      last_used = CurrentTime;    last_used = CurrentTime;
164    
165    if (!ConfigServerHide.flatten_links)    if (!ConfigServerHide.flatten_links)
166    {    {

Legend:
Removed from v.1043  
changed lines
  Added in v.1044

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