summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/ctcp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/ctcp.c b/src/common/ctcp.c
index bf0a8e7f..a8e1ea8d 100644
--- a/src/common/ctcp.c
+++ b/src/common/ctcp.c
@@ -148,6 +148,9 @@ ctcp_handle (session *sess, char *to, char *nick, char *ip,
 		serv->p_nctcp (serv, nick, outbuf);
 	}
 
+	if (word[4][1] == '\0')
+		return;
+
 	if (!ctcp_check (sess, nick, word, word_eol, word[4] + ctcp_offset))
 	{
 		if (!g_ascii_strncasecmp (msg, "SOUND", 5))