summaryrefslogtreecommitdiff
path: root/modules/m_topic.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2016-06-05 14:16:36 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2019-07-21 20:58:59 +0100
commit02b2a4ebcbd2eb71f7abaad36da2dc489c7c2d7c (patch)
tree2a3625f29859be965c7972f6fa131db0f9c9790b /modules/m_topic.c
parent7a438c17063b92a23f9ab133a88097861a6f4527 (diff)
Add global channel operator support
Diffstat (limited to 'modules/m_topic.c')
-rw-r--r--modules/m_topic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/m_topic.c b/modules/m_topic.c
index 4606e32..3aa5e3d 100644
--- a/modules/m_topic.c
+++ b/modules/m_topic.c
@@ -81,7 +81,8 @@ m_topic(struct Client *client_p, struct Client *source_p,
}
if (!(chptr->mode.mode & MODE_TOPICLIMIT) ||
- has_member_flags(ms, CHFL_CHANOP|CHFL_HALFOP))
+ has_member_flags(ms, CHFL_CHANOP|CHFL_HALFOP) ||
+ HasUMode(source_p, UMODE_GCHANOP))
{
char topic_info[USERHOST_REPLYLEN];