Include the Configure ad-hoc command on biboumi's JID for fixed_irc_server
Because a jid like “freenode.example.org” is both the JID for the configured IRC server, and biboumi’s JID. fix #3175
This commit is contained in:
@@ -11,10 +11,6 @@ AdhocCommand::AdhocCommand(std::vector<AdhocStep>&& callbacks, const std::string
|
||||
{
|
||||
}
|
||||
|
||||
AdhocCommand::~AdhocCommand()
|
||||
{
|
||||
}
|
||||
|
||||
bool AdhocCommand::is_admin_only() const
|
||||
{
|
||||
return this->admin_only;
|
||||
|
||||
@@ -19,7 +19,11 @@ class AdhocCommand
|
||||
friend class AdhocSession;
|
||||
public:
|
||||
AdhocCommand(std::vector<AdhocStep>&& callback, const std::string& name, const bool admin_only);
|
||||
~AdhocCommand();
|
||||
~AdhocCommand() = default;
|
||||
AdhocCommand(const AdhocCommand&) = default;
|
||||
AdhocCommand(AdhocCommand&&) = default;
|
||||
AdhocCommand& operator=(AdhocCommand&&) = delete;
|
||||
AdhocCommand& operator=(const AdhocCommand&) = delete;
|
||||
|
||||
const std::string name;
|
||||
|
||||
|
||||
@@ -591,7 +591,9 @@ void XmppComponent::send_version(const std::string& id, const std::string& jid_t
|
||||
this->send_stanza(iq);
|
||||
}
|
||||
|
||||
void XmppComponent::send_adhoc_commands_list(const std::string& id, const std::string& requester_jid, const std::string& from_jid, const bool with_admin_only, const AdhocCommandsHandler& adhoc_handler)
|
||||
void XmppComponent::send_adhoc_commands_list(const std::string& id, const std::string& requester_jid,
|
||||
const std::string& from_jid,
|
||||
const bool with_admin_only, const AdhocCommandsHandler& adhoc_handler)
|
||||
{
|
||||
Stanza iq("iq");
|
||||
iq["type"] = "result";
|
||||
|
||||
Reference in New Issue
Block a user