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 */ |
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 |
|
|