Fix Invalid CAP subcommand error if the user has no nick.

This commit is contained in:
Jilles Tjoelker 2008-03-18 23:47:37 +01:00
parent 48a266e5da
commit 48a038f4b5

View file

@ -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)))
{
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;
}