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

Comparing ircd-hybrid-8/modules/m_cap.c (file contents):
Revision 1178 by michael, Mon Aug 15 08:11:31 2011 UTC vs.
Revision 1222 by michael, Sun Sep 18 10:57:54 2011 UTC

# Line 402 | Line 402 | subcmd_search(const char *cmd, const str
402   static void
403   m_cap(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
404   {
405 <  char *subcmd = NULL, *caplist = NULL;
405 >  const char *subcmd = NULL, *caplist = NULL;
406    struct subcmd *cmd = NULL;
407  
408    if (EmptyString(parv[1]))    /* a subcommand is required */
# Line 418 | Line 418 | m_cap(struct Client *cptr, struct Client
418                        sizeof(cmdlist) / sizeof(struct subcmd),
419                        sizeof(struct subcmd), (bqcmp)subcmd_search)))
420    {
421 <    sendto_one(sptr, form_str(ERR_INVALIDCAPCMD),
422 <               me.name, sptr->name, subcmd);
421 >    sendto_one(sptr, form_str(ERR_INVALIDCAPCMD), me.name,
422 >               sptr->name[0] ? sptr->name : "*", subcmd);
423      return;
424    }
425  

Diff Legend

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