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

- ChanMode +S/+c: reverse is now stripped/blocked as well, because it's

similar to color, and is just as annoying (..if not worse).
This commit is contained in:
Bram Matthys
2007-12-30 11:27:06 +00:00
parent dd09869ef2
commit 10fd56d4e8
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -1575,3 +1575,5 @@
the first to enter a channel. Currently only 'none' and 'op' are supported.
- unreal32docs.html: doubt it will help much but at least this makes it a
little bit more clear (#3548), chatops vs globops.
- ChanMode +S/+c: reverse is now stripped/blocked as well, because it's
similar to color, and is just as annoying (..if not worse).
+1 -1
View File
@@ -788,7 +788,7 @@ int can_send(aClient *cptr, aChannel *chptr, char *msgtext, int notice)
char *c;
for (c = msgtext; *c; c++)
{
if (*c == 3 || *c == 27 || *c == 4)
if (*c == 3 || *c == 27 || *c == 4 || *c == 22) /* mirc color, ansi, rgb, reverse */
return (CANNOT_SEND_NOCOLOR);
}
}
+1 -1
View File
@@ -1243,7 +1243,7 @@ char *_StripColors(unsigned char *text) {
rgb = 1;
nc = 0;
}
else
else if (*text != '\026') /* (strip reverse too) */
{
new_str[i] = *text;
i++;