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:
@@ -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
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user