/[svn]/ircd-hybrid/branches/8.1.x/modules/m_whowas.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.1.x/modules/m_whowas.c

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

revision 2986 by michael, Fri Jan 31 11:23:59 2014 UTC revision 2987 by michael, Tue Feb 18 09:39:28 2014 UTC
# Line 50  whowas_do(struct Client *client_p, struc Line 50  whowas_do(struct Client *client_p, struc
50    int max = -1;    int max = -1;
51    const dlink_node *ptr = NULL;    const dlink_node *ptr = NULL;
52    
   if (parc > 3)  
     if (hunt_server(client_p, source_p, ":%s WHOWAS %s %s :%s", 3,  
                     parc, parv) != HUNTED_ISME)  
       return;  
   
53    if (parc > 2 && !EmptyString(parv[2]))    if (parc > 2 && !EmptyString(parv[2]))
54      if ((max = atoi(parv[2])) > 20 && !MyConnect(source_p))      if ((max = atoi(parv[2])) > 20 && !MyConnect(source_p))
55        max = 20;        max = 20;
# Line 120  m_whowas(struct Client *client_p, struct Line 115  m_whowas(struct Client *client_p, struct
115    
116    last_used = CurrentTime;    last_used = CurrentTime;
117    
118      if (parc > 3 && !ConfigServerHide.disable_remote_commands)
119        if (hunt_server(client_p, source_p, ":%s WHOWAS %s %s :%s", 3,
120                        parc, parv) != HUNTED_ISME)
121          return 0;
122    
123    whowas_do(client_p, source_p, parc, parv);    whowas_do(client_p, source_p, parc, parv);
124    return 0;    return 0;
125  }  }
# Line 135  mo_whowas(struct Client *client_p, struc Line 135  mo_whowas(struct Client *client_p, struc
135      return 0;      return 0;
136    }    }
137    
138      if (parc > 3)
139        if (hunt_server(client_p, source_p, ":%s WHOWAS %s %s :%s", 3,
140                        parc, parv) != HUNTED_ISME)
141          return 0;
142    
143    whowas_do(client_p, source_p, parc, parv);    whowas_do(client_p, source_p, parc, parv);
144    return 0;    return 0;
145  }  }

Legend:
Removed from v.2986  
changed lines
  Added in v.2987

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