Do not forget an early return, to return the correct item-not-found error
This commit is contained in:
@@ -472,6 +472,7 @@ void BiboumiComponent::handle_iq(const Stanza& stanza)
|
||||
stanza_error.disable();
|
||||
} catch (const Database::RecordNotFound& exc) {
|
||||
error_name = "item-not-found";
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if ((query = stanza.get_child("query", MUC_OWNER_NS)))
|
||||
|
||||
Reference in New Issue
Block a user