瀏覽代碼

registernick fix

tBKwtWS 8 年之前
父節點
當前提交
2ceb224ce4
共有 1 個文件被更改,包括 1 次插入1 次删除
  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.