1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 12:23:13 +02:00

- Fixed bug in +G where with not-really-matching-words color was needlessly stripped,

reported by SpeedFire (#0002375).
This commit is contained in:
Bram Matthys
2005-02-26 23:40:54 +00:00
parent 3b229d5d34
commit 988a0eb0c2
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -674,3 +674,5 @@
- Module coders: using extcmode_default_requirechop is now depricated, check src/extcmodes.c
ctrl+f extcmode_default_requirechop for more details (solution: copy+paste & fill in modechar).
- Nicks with ~ are now also not cutoff anymore but rejected like any other illegal char (#0002074).
- Fixed bug in +G where with not-really-matching-words color was needlessly stripped,
reported by SpeedFire (#0002375).
+2 -1
View File
@@ -102,7 +102,6 @@ int cleaned = 0;
pold = our_strcasestr(pold, badword->word);
if (!pold)
break;
cleaned = 1;
if (replacen == -1)
replacen = strlen(replacew);
if (searchn == -1)
@@ -131,6 +130,8 @@ int cleaned = 0;
continue;
}
cleaned = 1; /* still too soon? Syzop/20050227 */
/* Do we have any not-copied-yet data? */
if (poldx != startw) {
int tmp_n = startw - poldx;