summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-05-15 10:28:54 +0000
committercertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-05-15 10:28:54 +0000
commitc580ac75fc2eb76054684fb7fe5981c06f056986 (patch)
treeedf9d0b1674066d40c1ffade87d18de0841e764f
parent8431d0515f24c01e413085191db0511e0c853d43 (diff)
BUILD : 1.7.2 (107) BUGS : NOTES : woops, forgot a small condition ;)
git-svn-id: svn://svn.anope.org/anope/trunk@107 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@83 5417fbe8-f217-4b02-8779-1006273d7864
-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.