Rename iq_responder_callback_t to irc_… and add the equivalent to wait for iqs

This commit is contained in:
Florent Le Coz
2014-11-12 06:17:25 +01:00
parent dccd8039ad
commit e1d69806ed
6 changed files with 84 additions and 55 deletions
+9
View File
@@ -577,6 +577,15 @@ void XmppComponent::handle_iq(const Stanza& stanza)
const Iid iid(to.local);
bridge->send_xmpp_version_to_irc(iid, name, version, os);
}
else
{
const auto it = this->waiting_iq.find(id);
if (it != this->waiting_iq.end())
{
it->second(bridge, stanza);
this->waiting_iq.erase(it);
}
}
}
error_type = "cancel";
error_name = "feature-not-implemented";