From 50f7429fda7cb3ffd8c34abb0a13f3dcc929f2ed Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 8 Oct 2017 12:46:05 -0400 Subject: Fix some compiler warnings --- modules/botserv/badwords.cpp | 2 -- modules/botserv/kick.cpp | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/botserv') diff --git a/modules/botserv/badwords.cpp b/modules/botserv/badwords.cpp index 6f5ccf1c5..d504763be 100644 --- a/modules/botserv/badwords.cpp +++ b/modules/botserv/badwords.cpp @@ -256,8 +256,6 @@ class CommandBSBadwords : public Command return; } - bool override = !source.AccessFor(ci).HasPriv("BADWORDS"); - /* Special case: is it a number/list? Only do search if it isn't. */ if (!word.empty() && isdigit(word[0]) && word.find_first_not_of("1234567890,-") == Anope::string::npos) { diff --git a/modules/botserv/kick.cpp b/modules/botserv/kick.cpp index 2fbaf4c1b..7c7eb3829 100644 --- a/modules/botserv/kick.cpp +++ b/modules/botserv/kick.cpp @@ -237,9 +237,9 @@ ChanServ::Channel *KickerDataImpl::GetChannel() return Get(&KickerDataType::channel); } -void KickerDataImpl::SetChannel(ChanServ::Channel *channel) +void KickerDataImpl::SetChannel(ChanServ::Channel *chan) { - Set(&KickerDataType::amsgs, channel); + Set(&KickerDataType::amsgs, chan); } bool KickerDataImpl::GetAmsgs() -- cgit