]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modes/cmode_v.cpp
auto-set +s when +n is set (as +n requires +s) - allow +n to be 'set twice' allowing...
[user/henk/code/inspircd.git] / src / modes / cmode_v.cpp
index 7b14d84d435552bfd6a17405ae203a50d6e65d54..f12d9f9cfbcda3679f3c0033975649981f5c9344 100644 (file)
@@ -7,7 +7,6 @@
 #include "mode.h"
 #include "channels.h"
 #include "users.h"
-
 #include "commands.h"
 #include "modules.h"
 #include "inspstring.h"
@@ -28,7 +27,7 @@ ModePair ModeChannelVoice::ModeSet(userrec* source, userrec* dest, chanrec* chan
        userrec* x = ServerInstance->FindNick(parameter);
        if (x)
        {
-               if (channel->GetStatus(x) == STATUS_VOICE)
+               if (channel->GetStatusFlags(x) & UCMODE_VOICE)
                {
                        return std::make_pair(true, x->nick);
                }