Browse Source

registernick fix

tBKwtWS 8 years ago
parent
commit
2ceb224ce4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      irc/commands/admin.py

+ 1 - 1
irc/commands/admin.py

@@ -290,7 +290,7 @@ def do_command(self, connection, event):
                 connection.privmsg(replyto, "Too many arguments. For help type " + blue + self.helpchar + "channelfunctions" + reset + ".")
     
     elif command.split()[0] == "registernick":
-        if not userstatus.atleast_owner(self, event.source.nick, self.homechannel): #Insufficient rights.
+        if not self.channels[self.homechannel].is_owner(event.source.nick): #Insufficient rights.
             connection.privmsg(replyto, "Denied, you need to be the owner of " + red + self.homechannel  + reset + ".")
             return
         if cmdtype == "help":    # Display help text.