]> jfr.im git - irc/rizon/acid.git/commitdiff
vizon: Use isIdentified() instead of hasMode()
authorstaticfox <redacted>
Mon, 17 Apr 2017 00:33:19 +0000 (20:33 -0400)
committerstaticfox <redacted>
Mon, 17 Apr 2017 00:33:19 +0000 (20:33 -0400)
vizon/src/main/java/net/rizon/acid/plugins/vizon/commands/CheckCommand.java

index ff9b091e5add73ae11b46fb4ce0ad0048c0937bd..d6bfb2b47e7de4a0ddfa4b24ac8953268110a2f3 100644 (file)
@@ -52,7 +52,7 @@ public class CheckCommand extends Command
        @Override
        public void Run(User source, AcidUser to, Channel c, String[] args)
        {
-               if (!source.hasMode("r"))
+               if (!source.isIdentified())
                {
                        // User has not identified to NickServ.
                        Acidictive.reply(source, to, c, "You need to register your nickname before you can use this command");