Fix Invalid CAP subcommand error if the user has no nick.
This commit is contained in:
parent
58067bff67
commit
230a6e6c41
|
@ -467,7 +467,8 @@ m_cap(struct Client *client_p, struct Client *source_p, int parc, const char *pa
|
||||||
sizeof(struct clicap_cmd), (bqcmp) clicap_cmd_search)))
|
sizeof(struct clicap_cmd), (bqcmp) clicap_cmd_search)))
|
||||||
{
|
{
|
||||||
sendto_one(source_p, form_str(ERR_INVALIDCAPCMD),
|
sendto_one(source_p, form_str(ERR_INVALIDCAPCMD),
|
||||||
me.name, source_p->name, parv[1]);
|
me.name, EmptyString(source_p->name) ? "*" : source_p->name,
|
||||||
|
parv[1]);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue