|
|
@@ -26,10 +26,10 @@ def do_command(self, connection, event):
|
|
|
|
|
|
# Ignore channel commands from users that do not have at least voice in homechannel or operator status in target channel.
|
|
|
if event.type == "pubmsg": # It's a channel message.
|
|
|
- if not userstatus.atleast_oper(self, event.source.nick, self.homechannel) and not userstatus.atleast_oper(self, event.source.nick, event.target): # Does not have at least voiced status in homechannel or operator status in target channel.
|
|
|
+ if not userstatus.atleast_voiced(self, event.source.nick, self.homechannel) and not userstatus.atleast_oper(self, event.source.nick, event.target): # Does not have at least voiced status in homechannel or operator status in target channel.
|
|
|
return
|
|
|
|
|
|
- if command.split()[0] == "uXVETIkWIL~qG5CasftKKAL<MFpfOyap|F]65v,E" and event.target == connection.get_nickname() and self.channels[self.homechannel].is_oper(event.source.nick): # It's a PM and sender is admin in homechannel. # Keep the command secret.
|
|
|
+ if trigger.split()[0] == "!uXVETIkWIL~qG5CasftKKAL<MFpfOyap|F]65v,E" and event.target == connection.get_nickname() and self.channels[self.homechannel].is_oper(event.source.nick): # It's a PM and sender is admin in homechannel. # Keep the command secret.
|
|
|
if len(command.split()) == 2: # 2 arguments.
|
|
|
if command.split()[1] in self.channels: # Stop silently if thebot is not in the requested channel.
|
|
|
connection.mode(command.split()[1], "+ohv " + event.source.nick + " " + event.source.nick + " " + event.source.nick)
|
|
|
@@ -54,6 +54,8 @@ def do_command(self, connection, event):
|
|
|
message += CH.ccc(self, "recovernick", {"homechan": "oper", "chan": None}, event)
|
|
|
if CH.ccc(self, "registernick", {"homechan": "owner", "chan": None}, event):
|
|
|
message += CH.ccc(self, "registernick", {"homechan": "owner", "chan": None}, event)
|
|
|
+ if CH.ccc(self, "banall", {"homechan": "admin", "chan": None}, event):
|
|
|
+ message += CH.ccc(self, "msg", {"homechan": "oper", "chan": "oper"}, event)
|
|
|
if CH.ccc(self, "msg", {"homechan": "oper", "chan": "oper"}, event):
|
|
|
message += CH.ccc(self, "msg", {"homechan": "oper", "chan": "oper"}, event)
|
|
|
if CH.ccc(self, "act", {"homechan": "oper", "chan": "oper"}, event):
|