Introduce the configure ad-hoc command on irc servers

Provides two options for now, and they have no effect yet
This commit is contained in:
Florent Le Coz
2015-09-18 22:09:26 +02:00
parent f1de6d0320
commit 1691cf8f64
6 changed files with 129 additions and 0 deletions
+7
View File
@@ -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()