aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_autoop.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-08-07 11:34:31 -0400
committerGravatar Daniel De Graaf2010-08-07 11:36:57 -0400
commit6f4de55f1604f9dd9a24e644e7d1d8d8a77b90c1 (patch)
tree5b956df3bf572df8434b6977ad2344cf3dba5e7e /src/modules/m_autoop.cpp
parentFix m_restrictchans not checking new channels (diff)
Prevent kicks of users who have a protecting low-rank prefix set
Diffstat (limited to 'src/modules/m_autoop.cpp')
-rw-r--r--src/modules/m_autoop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_autoop.cpp b/src/modules/m_autoop.cpp
index 49e9a3ab2..0442d0420 100644
--- a/src/modules/m_autoop.cpp
+++ b/src/modules/m_autoop.cpp
@@ -33,7 +33,7 @@ class AutoOpList : public ListModeBase
std::string::size_type pos = parameter.find(':');
if (pos == 0 || pos == std::string::npos)
return adding ? MOD_RES_DENY : MOD_RES_PASSTHRU;
- unsigned int mylevel = channel->GetPrefixValue(source);
+ unsigned int mylevel = channel->GetAccessRank(source);
irc::commasepstream modes(parameter.substr(0, pos));
std::string mid;
while (modes.GetToken(mid))