diff options
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | src/modules/m_antibottler.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -57,12 +57,12 @@ if [ "$1" = "-update" -o "$2" = "-update" ] ; then case "$OSNAME" in FreeBSD) LDLIBS="-Ldl" - FLAGS="-fPIC -frtti $OPTIMISATI -Wcomment -Wformat -Wunused -Wshadow -Werror" + FLAGS="-fPIC -frtti $OPTIMISATI -Wcomment -Wformat -Wunused -Wshadow -Werror -Wswitch -Wchar-subscripts -Wparentheses" MAKEPROG="gmake" ;; *) LDLIBS="-ldl" - FLAGS="-fPIC -frtti $OPTIMISATI -Wcomment -Wformat -Wunused -Wshadow -Werror" + FLAGS="-fPIC -frtti $OPTIMISATI -Wcomment -Wformat -Wunused -Wshadow -Werror -Wswitch -Wchar-subscripts -Wparentheses" MAKEPROG="make" ;; esac diff --git a/src/modules/m_antibottler.cpp b/src/modules/m_antibottler.cpp index fb85bb7b1..3b57d9d09 100644 --- a/src/modules/m_antibottler.cpp +++ b/src/modules/m_antibottler.cpp @@ -53,10 +53,10 @@ class ModuleAntiBottler : public Module { for (int j = 0; j < strlen(data); j++) { - if (data[j] = ':') + if (data[j] == ':') break; - if (data[j] = '"') + if (data[j] == '"') { not_bottler = true; } |