summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-12-10 19:19:08 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-12-10 19:19:08 +0000
commit835ec0791ddee4d2616cdeaea645aa30d8e6d5d8 (patch)
tree5ac7bdf4fa0bb1620f1ffec46cf1606384c8f582 /modules/core
parentc995c8f700fedfa1dbeedb3ef1746c393ee5c4b6 (diff)
- m_mode.c: fixed possible desync with modes set by services
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2643 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/m_mode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/m_mode.c b/modules/core/m_mode.c
index 3dd1cb2..304925a 100644
--- a/modules/core/m_mode.c
+++ b/modules/core/m_mode.c
@@ -94,7 +94,7 @@ m_mode(struct Client *client_p, struct Client *source_p,
* servers have always gotten away with murder,
* including telnet servers *g* - Dianora
*/
- if (IsServer(source_p))
+ if (IsServer(source_p) || HasFlag(source_p, FLAGS_SERVICE))
set_channel_mode(client_p, source_p, chptr, NULL, parc - 2, parv + 2,
chptr->chname);
else
@@ -138,7 +138,7 @@ ms_tmode(struct Client *client_p, struct Client *source_p, int parc, char *parv[
if (atol(parv[1]) > chptr->channelts)
return;
- if (IsServer(source_p))
+ if (IsServer(source_p) || HasFlag(source_p, FLAGS_SERVICE))
set_channel_mode(client_p, source_p, chptr, NULL, parc - 3, parv + 3, chptr->chname);
else
{