소스 검색

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.