mirror of
https://github.com/anope/anope.git
synced 2026-07-08 10:03:14 +02:00
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
This commit is contained in:
parent
8431d0515f
commit
c580ac75fc
@@ -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;
|
||||
|
||||
+5
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user