Commit Diff


commit - 258143897ca1a4cbc8b97c9691a0cf83b963705a
commit + b92a7627f3dc6b85310964d4b602bea2509dade6
blob - 587668105ff36340cb884b97ae3a28793e42d1c7
blob + aec6aa2da9e9a6b686535040e46432099c424fd0
--- src/ngircd/channel.c
+++ src/ngircd/channel.c
@@ -500,6 +500,10 @@ Channel_IsValidName( const char *Name )
 {
 	assert( Name != NULL );
 
+#ifdef STRICT_RFC
+	if (strlen(Name) <= 1)
+		return false;
+#endif
 	if (strchr("+#", Name[0]) == NULL)
 		return false;
 	if (strlen(Name) >= CHANNEL_NAME_LEN)