From d9c8536fb46fc722ef83d824d731bcbfac66ca65 Mon Sep 17 00:00:00 2001 From: bqv Date: Wed, 23 Nov 2022 20:56:13 +0000 Subject: [PATCH] mini fixes --- account.cpp | 2 +- channel.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/account.cpp b/account.cpp index 246df14..ced9a57 100644 --- a/account.cpp +++ b/account.cpp @@ -150,7 +150,7 @@ bool weechat::account::search_device(weechat::account::device* out, std::uint32_ } (void) out; - return NULL; + return false; } void weechat::account::add_device(weechat::account::device *device) diff --git a/channel.cpp b/channel.cpp index cf56f18..bb2bd56 100644 --- a/channel.cpp +++ b/channel.cpp @@ -249,7 +249,7 @@ weechat::channel::channel(weechat::account& account, struct tm *ago = gmtime(&start); ago->tm_mday -= 7; start = mktime(ago); - fetch_mam(nullptr, &start, nullptr, nullptr); + fetch_mam(id, &start, nullptr, nullptr); } }