|
|
@@ -60,7 +60,7 @@ def do_command(self, connection, event):
|
|
|
self.die(msg = "[" + event.source.nick + "] " + command.split(maxsplit=1)[1])
|
|
|
|
|
|
elif command.split()[0] == "reconnect":
|
|
|
- if not self.channels[self.homechannel].is_owner(event.source.nick) and not self.channels[self.homechannel].is_admin(event.source.nick) and not self.channels[self.homechannel].is_oper(event.source.nick):
|
|
|
+ if not userstatus.atleast_oper(self, event.source.nick, self.homechannel):
|
|
|
connection.privmsg(replyto, "Denied, you need to have operator status or higher in " + red + self.homechannel + reset + ".")
|
|
|
return
|
|
|
if cmdtype == "help": # Display help text.
|