ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_whowas.c
(Generate patch)

Comparing ircd-hybrid/trunk/modules/m_whowas.c (file contents):
Revision 9374 by michael, Sat May 9 20:54:46 2020 UTC vs.
Revision 9381 by michael, Sat May 9 22:36:09 2020 UTC

# Line 43 | Line 43
43   enum { WHOWAS_MAX_REPLIES = 20 };  /* Only applies to remote clients */
44  
45   static void
46 < do_whowas(struct Client *source_p, const int parc, char *parv[])
46 > do_whowas(struct Client *source_p, char *parv[])
47   {
48    int count = 0, max = -1;
49    dlink_node *node;
50  
51 <  if (parc > 2 && !EmptyString(parv[2]))
51 >  if (!EmptyString(parv[2]))
52      max = atoi(parv[2]);
53  
54    if (!MyConnect(source_p) && (max <= 0 || max > WHOWAS_MAX_REPLIES))
# Line 127 | Line 127 | m_whowas(struct Client *source_p, int pa
127      if (server_hunt(source_p, ":%s WHOWAS %s %s :%s", 3, parc, parv)->ret != HUNTED_ISME)
128        return;
129  
130 <  do_whowas(source_p, parc, parv);
130 >  do_whowas(source_p, parv);
131   }
132  
133   /*! \brief WHOWAS command handler
# Line 155 | Line 155 | ms_whowas(struct Client *source_p, int p
155    if (server_hunt(source_p, ":%s WHOWAS %s %s :%s", 3, parc, parv)->ret != HUNTED_ISME)
156      return;
157  
158 <  do_whowas(source_p, parc, parv);
158 >  do_whowas(source_p, parv);
159   }
160  
161   static struct Message whowas_msgtab =

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)