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

Comparing ircd-hybrid-7.2/contrib/m_force.c (file contents):
Revision 489 by adx, Mon Jan 2 22:05:15 2006 UTC vs.
Revision 490 by michael, Wed Mar 1 14:13:27 2006 UTC

# Line 102 | Line 102 | mo_forcejoin(struct Client *client_p, st
102      return;
103    }
104  
105 <  if ((target_p = find_client(parv[1])) == NULL)
105 >  if ((target_p = find_client(parv[1])) == NULL || IsClient(target_p))
106    {
107      sendto_one(source_p, form_str(ERR_NOSUCHNICK),
108                 me.name, source_p->name, parv[1]);
# Line 307 | Line 307 | mo_forcepart(struct Client *client_p, st
307    }
308  
309    /* if target_p == NULL then let the oper know */
310 <  if ((target_p = find_client(parv[1])) == NULL)
310 >  if ((target_p = find_client(parv[1])) == NULL || !IsClient(target_p))
311    {
312      sendto_one(source_p, form_str(ERR_NOSUCHNICK),
313                 me.name, source_p->name, parv[1]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines