diff --git a/Changes b/Changes index 07704ed8a..8fa95d189 100644 --- a/Changes +++ b/Changes @@ -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). diff --git a/src/channel.c b/src/channel.c index a06db9ac2..a4593513c 100644 --- a/src/channel.c +++ b/src/channel.c @@ -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); } } diff --git a/src/modules/m_message.c b/src/modules/m_message.c index 1d013a656..e75fa08c5 100644 --- a/src/modules/m_message.c +++ b/src/modules/m_message.c @@ -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++;