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-7.2/modules/m_whowas.c (file contents):
Revision 142 by lusky, Sun Oct 2 21:05:51 2005 UTC vs.
Revision 143 by michael, Sun Oct 16 09:49:16 2005 UTC

# Line 47 | Line 47 | static void whowas_do(struct Client *, s
47  
48   struct Message whowas_msgtab = {
49    "WHOWAS", 0, 0, 0, 0, MFLG_SLOW, 0,
50 <  { m_unregistered, m_whowas, m_error, m_ignore, mo_whowas, m_ignore }
50 >  { m_unregistered, m_whowas, mo_whowas, m_ignore, mo_whowas, m_ignore }
51   };
52  
53   #ifndef STATIC_MODULES
# Line 117 | Line 117 | whowas_do(struct Client *client_p, struc
117    struct Whowas *temp = NULL;
118    int cur = 0;
119    int max = -1;
120 <  char *p, *nick;
120 >  char *p = NULL, *nick = NULL;
121  
122    if (parc > 2)
123      max = atoi(parv[2]);
124 +
125    if (parc > 3)
126 <    if (hunt_server(client_p, source_p, ":%s WHOWAS %s %s :%s", 3, parc, parv))
126 >    if (hunt_server(client_p, source_p, ":%s WHOWAS %s %s :%s", 3,
127 >                    parc, parv) != HUNTED_ISME)
128        return;
129  
130    nick = parv[1];

Diff Legend

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