summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--botserv.c8
-rw-r--r--version.log6
2 files changed, 9 insertions, 5 deletions
diff --git a/botserv.c b/botserv.c
index b8fb4ae12..3e4160f24 100644
--- a/botserv.c
+++ b/botserv.c
@@ -297,7 +297,7 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf)
if (bw->type == BW_ANY
&& ((BSCaseSensitive && strstr(nbuf, bw->word))
- || stristr(nbuf, bw->word))) {
+ || (!BSCaseSensitive && stristr(nbuf, bw->word)))) {
mustkick = 1;
} else if (bw->type == BW_SINGLE) {
int len = strlen(bw->word);
@@ -2361,9 +2361,9 @@ static int do_badwords(User * u)
}
for (bw = ci->badwords, i = 0; i < ci->bwcount; bw++, i++) {
- if (bw->word &&
- ((BSCaseSensitive && (!strcmp(bw->word, word)))
- || (!BSCaseSensitive && (!stricmp(bw->word, word))))) {
+ if (bw->word && ((BSCaseSensitive && (!strcmp(bw->word, word)))
+ || (!BSCaseSensitive
+ && (!stricmp(bw->word, word))))) {
notice_lang(s_BotServ, u, BOT_BADWORDS_ALREADY_EXISTS,
bw->word, ci->name);
return MOD_CONT;
diff --git a/version.log b/version.log
index e80b8e46c..0e53f30f9 100644
--- a/version.log
+++ b/version.log
@@ -8,11 +8,15 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="2"
-VERSION_BUILD="106"
+VERSION_BUILD="107"
VERSION_EXTRA=""
# $Log$
#
+# BUILD : 1.7.2 (107)
+# BUGS :
+# NOTES : woops, forgot a small condition ;)
+#
# BUILD : 1.7.2 (106)
# BUGS :
# NOTES : Added BSCaseSensitive directive for a cAsE sEnSiTiVe badword kicker.