mirror of
https://github.com/anope/anope.git
synced 2026-07-07 01:23:13 +02:00
Rewrote cs_access to be more C++ish, changed NumberList to be more C++ish and fixed some compiler warnings on 64bit systems
This commit is contained in:
@@ -149,7 +149,7 @@ class CommandBSBadwords : public Command
|
||||
{
|
||||
BadWord *bw = ci->GetBadWord(i);
|
||||
|
||||
if (!bw->word.empty() && (Config.BSCaseSensitive && !stricmp(bw->word.c_str(), realword.c_str())
|
||||
if (!bw->word.empty() && ((Config.BSCaseSensitive && !stricmp(bw->word.c_str(), realword.c_str()))
|
||||
|| (!Config.BSCaseSensitive && bw->word == realword.c_str())))
|
||||
{
|
||||
notice_lang(Config.s_BotServ, u, BOT_BADWORDS_ALREADY_EXISTS, bw->word.c_str(), ci->name.c_str());
|
||||
|
||||
Reference in New Issue
Block a user