aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_delaymsg.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_delaymsg.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_delaymsg.cpp')
-rw-r--r--src/modules/m_delaymsg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_delaymsg.cpp b/src/modules/m_delaymsg.cpp
index fb4bd7ce6..820e3ff29 100644
--- a/src/modules/m_delaymsg.cpp
+++ b/src/modules/m_delaymsg.cpp
@@ -124,7 +124,7 @@ ModResult ModuleDelayMsg::OnUserPreMessage(User* user, void* dest, int target_ty
if (ts + atoi(len.c_str()) > ServerInstance->Time())
{
- if (channel->GetPrefixValue(user) < VOICE_VALUE)
+ if (channel->GetAccessRank(user) < VOICE_VALUE)
{
user->WriteNumeric(404, "%s %s :You must wait %s seconds after joining to send to channel (+d)",
user->nick.c_str(), channel->name.c_str(), len.c_str());