summaryrefslogtreecommitdiff
path: root/src/xmpp/biboumi_component.cpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-09-18 22:01:02 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-09-18 22:09:26 +0200
commit1691cf8f64d6175c61ddf9a4f4a95b44c32d698e (patch)
tree34870be05030d00dfbaa2d1d12c0c9141dcfc223 /src/xmpp/biboumi_component.cpp
parentf1de6d032091bd141e12e8345969495d6f23c3e6 (diff)
downloadbiboumi-1691cf8f64d6175c61ddf9a4f4a95b44c32d698e.tar.gz
biboumi-1691cf8f64d6175c61ddf9a4f4a95b44c32d698e.tar.bz2
biboumi-1691cf8f64d6175c61ddf9a4f4a95b44c32d698e.tar.xz
biboumi-1691cf8f64d6175c61ddf9a4f4a95b44c32d698e.zip
Introduce the configure ad-hoc command on irc servers
Provides two options for now, and they have no effect yet
Diffstat (limited to 'src/xmpp/biboumi_component.cpp')
-rw-r--r--src/xmpp/biboumi_component.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp
index 974676b..920a2a3 100644
--- a/src/xmpp/biboumi_component.cpp
+++ b/src/xmpp/biboumi_component.cpp
@@ -17,6 +17,7 @@
#include <stdio.h>
#include <louloulibs.h>
+#include <biboumi.h>
#include <uuid.h>
@@ -57,6 +58,12 @@ BiboumiComponent::BiboumiComponent(std::shared_ptr<Poller> poller, const std::st
{"disconnect-user", AdhocCommand({&DisconnectUserStep1, &DisconnectUserStep2}, "Disconnect a user from the gateway", true)},
{"reload", AdhocCommand({&Reload}, "Reload biboumi’s configuration", true)}
};
+
+ this->irc_server_adhoc_commands_handler.get_commands() = {
+#ifdef USE_DATABASE
+ {"configure", AdhocCommand({&ConfigureIrcServerStep1, &ConfigureIrcServerStep2}, "Configure a few settings for that IRC server", false)},
+#endif
+ };
}
void BiboumiComponent::shutdown()