From e7f3a5ad93253e9dd08a6d79cad40771afbf7a4f Mon Sep 17 00:00:00 2001 From: Sam Dodrill Date: Thu, 19 Feb 2015 23:50:09 -0800 Subject: [PATCH] modules/core/m_message: don't apply local policy remotely Closes #33 --- modules/core/m_message.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/core/m_message.c b/modules/core/m_message.c index 3baadb0..ee40ef1 100644 --- a/modules/core/m_message.c +++ b/modules/core/m_message.c @@ -485,6 +485,10 @@ msg_channel(int p_or_n, const char *command, rb_strlcpy(text2, text, BUFSIZE); strip_unprintable(text2); + if !MyClient(source_p) { + goto skip_NOCAPS_check; + } + // Don't count the "ACTION" part of action as part of the message --SnoFox if (p_or_n != NOTICE && *text == '\001' && !strncasecmp(text + 1, "ACTION ", 7)) { @@ -503,6 +507,7 @@ msg_channel(int p_or_n, const char *command, return; } } +skip_NOCAPS_check: if(chptr->mode.mode & MODE_NOCOLOR && (!ConfigChannel.exempt_cmode_c || !is_any_op(msptr))) { rb_strlcpy(text2, text, BUFSIZE);