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 58067bff67
commit 230a6e6c41
1 changed files with 2 additions and 1 deletions

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;
}