diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-12-03 21:14:24 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-12-03 21:15:22 +0100 |
commit | 1f6eea62f46789c0d3ebe7da133ccad2e59c89c8 (patch) | |
tree | d84086c52ea913fea84aa33d2ef0f6284c24d8e7 /src/xmpp/biboumi_component.cpp | |
parent | 700a6c7bc39aa48af5037ecbb9778b20fb6f87df (diff) | |
download | biboumi-1f6eea62f46789c0d3ebe7da133ccad2e59c89c8.tar.gz biboumi-1f6eea62f46789c0d3ebe7da133ccad2e59c89c8.tar.bz2 biboumi-1f6eea62f46789c0d3ebe7da133ccad2e59c89c8.tar.xz biboumi-1f6eea62f46789c0d3ebe7da133ccad2e59c89c8.zip |
Add an ad-hoc command to disconnect a user from one or more IRC server
fix #3077
Diffstat (limited to 'src/xmpp/biboumi_component.cpp')
-rw-r--r-- | src/xmpp/biboumi_component.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp index 6f1e585..72b767f 100644 --- a/src/xmpp/biboumi_component.cpp +++ b/src/xmpp/biboumi_component.cpp @@ -55,7 +55,8 @@ BiboumiComponent::BiboumiComponent(std::shared_ptr<Poller> poller, const std::st this->adhoc_commands_handler.get_commands() = { {"ping", AdhocCommand({&PingStep1}, "Do a ping", false)}, {"hello", AdhocCommand({&HelloStep1, &HelloStep2}, "Receive a custom greeting", false)}, - {"disconnect-user", AdhocCommand({&DisconnectUserStep1, &DisconnectUserStep2}, "Disconnect a user from the gateway", true)}, + {"disconnect-user", AdhocCommand({&DisconnectUserStep1, &DisconnectUserStep2}, "Disconnect selected users from the gateway", true)}, + {"disconnect-from-irc-servers", AdhocCommand({&DisconnectUserFromServerStep1, &DisconnectUserFromServerStep2, &DisconnectUserFromServerStep3}, "Disconnect from the selected IRC servers", false)}, {"reload", AdhocCommand({&Reload}, "Reload biboumi’s configuration", true)} }; |