diff --git a/src/sbbs3/mqtt.c b/src/sbbs3/mqtt.c
index 7312db7435a2e366b563392a6b14501182507ef9..1c1adf35d77137be46b7d98f0e90ca1058c3401d 100644
--- a/src/sbbs3/mqtt.c
+++ b/src/sbbs3/mqtt.c
@@ -808,7 +808,7 @@ int mqtt_user_login_fail(struct mqtt* mqtt, client_t* client, const char* userna
 	if(!mqtt->cfg->mqtt.enabled)
 		return MQTT_SUCCESS;
 
-	if(client->protocol == NULL || username == NULL)
+	if(username == NULL)
 		return MQTT_FAILURE;
 	snprintf(topic, sizeof(topic), "login_fail/%s", client->protocol);
 	strlwr(topic);