From 230a6e6c41c94a59af7409634a795cf62d23ce64 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 18 Mar 2008 23:47:37 +0100 Subject: [PATCH] Fix Invalid CAP subcommand error if the user has no nick. --- modules/m_cap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/m_cap.c b/modules/m_cap.c index 0731f1e..5bf6eae 100644 --- a/modules/m_cap.c +++ b/modules/m_cap.c @@ -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; }