]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_cycle.cpp
Fix GetPrefixChar returning empty if a non-prefix mode was used
[user/henk/code/inspircd.git] / src / modules / m_cycle.cpp
index 1348feeb33170b120103d4082c70389813e877b9..8caa07b62d69682f00d20621313ab1bedafa02d9 100644 (file)
@@ -50,7 +50,7 @@ class CommandCycle : public Command
                         */
                        if (IS_LOCAL(user))
                        {
-                               if (channel->GetStatus(user) < STATUS_VOICE && channel->IsBanned(user))
+                               if (channel->GetPrefixValue(user) < VOICE_VALUE && channel->IsBanned(user))
                                {
                                        /* banned, boned. drop the message. */
                                        user->WriteServ("NOTICE "+std::string(user->nick)+" :*** You may not cycle, as you are banned on channel " + channel->name);