summaryrefslogtreecommitdiff
path: root/src/modules/m_chanprotect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_chanprotect.cpp')
-rw-r--r--src/modules/m_chanprotect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index 86f6876ae..a0a0da1e0 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -209,7 +209,7 @@ class ModuleChanProtect : public Module
return -1;
// given user isnt even on the channel, eat the mode change
- if (!Srv->IsOnChannel(theuser,chan))
+ if (!chan->HasUser(theuser))
return -1;
// source is a server, or ulined, we'll let them +-q the user.
@@ -252,7 +252,7 @@ class ModuleChanProtect : public Module
return -1;
// given user isnt even on the channel, eat the mode change
- if (!Srv->IsOnChannel(theuser,chan))
+ if (!chan->HasUser(theuser))
return -1;
// source has +q, is a server, or ulined, we'll let them +-a the user.