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

Remove MODE_NOCOLOR and MODE_STRIP leftovers.

This commit is contained in:
Bram Matthys
2015-10-17 19:51:39 +02:00
parent 240f550e4f
commit 2de3fbf9d0
2 changed files with 1 additions and 8 deletions
-2
View File
@@ -1547,8 +1547,6 @@ struct liststructprio {
#define MODE_KEY 0x2000
#define MODE_LIMIT 0x4000
#define MODE_RGSTR 0x8000
#define MODE_NOCOLOR 0x40000
#define MODE_STRIP 0x400000
#define MODE_INVEX 0x8000000
#define is_halfop is_half_op
+1 -6
View File
@@ -150,12 +150,7 @@ CMD_FUNC(m_part)
/* Banned? No comment allowed ;) */
if (comment && is_banned(sptr, chptr, BANCHK_MSG))
comment = NULL;
/* And other things... */
if ((chptr->mode.mode & MODE_NOCOLOR) && comment) {
if (strchr((char *)comment, 3) || strchr((char *)comment, 27)) {
comment = NULL;
}
}
/* Same for +m */
if ((chptr->mode.mode & MODE_MODERATED) && comment &&
!has_voice(sptr, chptr) && !is_halfop(sptr, chptr))
{