Also store a reference instead of a pointer, in AdhocCommandsHandler
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user