diff options
| author | Adam <Adam@anope.org> | 2017-10-08 12:46:05 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2017-10-08 12:46:05 -0400 |
| commit | 50f7429fda7cb3ffd8c34abb0a13f3dcc929f2ed (patch) | |
| tree | e8e65cb6e1fed5aebf0b252954e9f40747ac7f4a /modules/botserv | |
| parent | 1e52b087139ceb33b114a7fa20a2c6d3d453d371 (diff) | |
Fix some compiler warnings
Diffstat (limited to 'modules/botserv')
| -rw-r--r-- | modules/botserv/badwords.cpp | 2 | ||||
| -rw-r--r-- | modules/botserv/kick.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
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() |
