summaryrefslogtreecommitdiff
path: root/src/xmpp/biboumi_component.cpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-12-21 21:15:03 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-12-23 11:05:54 +0100
commit9714d02018904b0c207a3f4d7de0be1a6a22774b (patch)
tree2357be6e7e2399e057aa3c3b8ded7286a96dc6ee /src/xmpp/biboumi_component.cpp
parent7e2427148e9023483f266cd3ac4e167d50320796 (diff)
downloadbiboumi-9714d02018904b0c207a3f4d7de0be1a6a22774b.tar.gz
biboumi-9714d02018904b0c207a3f4d7de0be1a6a22774b.tar.bz2
biboumi-9714d02018904b0c207a3f4d7de0be1a6a22774b.tar.xz
biboumi-9714d02018904b0c207a3f4d7de0be1a6a22774b.zip
Also store a reference instead of a pointer, in AdhocCommandsHandler
Diffstat (limited to 'src/xmpp/biboumi_component.cpp')
-rw-r--r--src/xmpp/biboumi_component.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp
index 9682dcb..e697fcd 100644
--- a/src/xmpp/biboumi_component.cpp
+++ b/src/xmpp/biboumi_component.cpp
@@ -43,7 +43,7 @@ static std::set<std::string> kickable_errors{
BiboumiComponent::BiboumiComponent(std::shared_ptr<Poller> poller, const std::string& hostname, const std::string& secret):
XmppComponent(poller, hostname, secret),
- irc_server_adhoc_commands_handler(this)
+ irc_server_adhoc_commands_handler(*this)
{
this->stanza_handlers.emplace("presence",
std::bind(&BiboumiComponent::handle_presence, this,std::placeholders::_1));