|
@@ -290,7 +290,7 @@ def do_command(self, connection, event):
|
|
|
connection.privmsg(replyto, "Too many arguments. For help type " + blue + self.helpchar + "channelfunctions" + reset + ".")
|
|
connection.privmsg(replyto, "Too many arguments. For help type " + blue + self.helpchar + "channelfunctions" + reset + ".")
|
|
|
|
|
|
|
|
elif command.split()[0] == "registernick":
|
|
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 + ".")
|
|
connection.privmsg(replyto, "Denied, you need to be the owner of " + red + self.homechannel + reset + ".")
|
|
|
return
|
|
return
|
|
|
if cmdtype == "help": # Display help text.
|
|
if cmdtype == "help": # Display help text.
|