|
|
@@ -117,7 +117,7 @@ def do_command(self, connection, event, user, channel):
|
|
|
connection.privmsg(replyto, font.grey + "Usage: " + font.blue + "!quit " + font.reset + font.italic + "reason")
|
|
|
elif cmdtype == "cmd":
|
|
|
if not userstatus.atleast_admin(self, event.source.nick, self.network.home_channel): #Insufficient rights.
|
|
|
- connection.privmsg(replyto, "Denied, you need to have admin (super operator) status or higher in " + font.font.red + self.network.home_channel + font.reset + ".")
|
|
|
+ connection.privmsg(replyto, "Denied, you need to have admin (super operator) status or higher in " + font.red + self.network.home_channel + font.reset + ".")
|
|
|
return
|
|
|
if len(command.split()) == 1:
|
|
|
log.info("Killed by: " + event.source.nick)
|
|
|
@@ -128,7 +128,7 @@ def do_command(self, connection, event, user, channel):
|
|
|
|
|
|
elif one == "reconnect":
|
|
|
if not userstatus.atleast_oper(self, event.source.nick, self.network.home_channel):
|
|
|
- connection.privmsg(replyto, "Denied, you need to have operator status or higher in " + font.font.red + self.network.home_channel + font.reset + ".")
|
|
|
+ connection.privmsg(replyto, "Denied, you need to have operator status or higher in " + font.red + self.network.home_channel + font.reset + ".")
|
|
|
return
|
|
|
if cmdtype == "help": # Display help text.
|
|
|
if len(command.split()) != 1:
|
|
|
@@ -143,7 +143,7 @@ def do_command(self, connection, event, user, channel):
|
|
|
|
|
|
elif one == "recovernick":
|
|
|
if not userstatus.atleast_voiced(self, event.source.nick, self.network.home_channel):
|
|
|
- connection.privmsg(replyto, "Denied, you need to have voiced status or higher in " + font.font.red + self.network.home_channel + font.reset + ".")
|
|
|
+ connection.privmsg(replyto, "Denied, you need to have voiced status or higher in " + font.red + self.network.home_channel + font.reset + ".")
|
|
|
return
|
|
|
if cmdtype == "help": # Display help text.
|
|
|
if len(command.split()) != 1:
|
|
|
@@ -151,20 +151,20 @@ def do_command(self, connection, event, user, channel):
|
|
|
connection.privmsg(replyto, "Let " + connection.get_nickname() + " try to recover " + connection.nickname + " as nickname.")
|
|
|
elif cmdtype == "cmd":
|
|
|
if connection.get_nickname() == connection.nickname:
|
|
|
- connection.action(replyto, "is already named " + font.font.red + connection.nickname + font.reset + ".")
|
|
|
+ connection.action(replyto, "is already named " + font.red + connection.nickname + font.reset + ".")
|
|
|
return
|
|
|
from common.networkservices import NickServ
|
|
|
NickServ.recover_nick(connection, self.password)
|
|
|
|
|
|
elif one == "join":
|
|
|
if not userstatus.atleast_oper(self, event.source.nick, self.network.home_channel):
|
|
|
- connection.privmsg(replyto, "Denied, you need to have operator status or higher in " + font.font.red + self.network.home_channel + font.reset + ".")
|
|
|
+ connection.privmsg(replyto, "Denied, you need to have operator status or higher in " + font.red + self.network.home_channel + font.reset + ".")
|
|
|
return
|
|
|
if cmdtype == "help": #Display help text.
|
|
|
if len(command.split()) != 1:
|
|
|
return
|
|
|
connection.privmsg(replyto, "Make " + connection.get_nickname() + " join a channel. Password optional.")
|
|
|
- connection.privmsg(replyto, font.grey + "Usage: " + font.blue + self.cmdchar + "join " + font.font.red + font.italic + "channel " + font.reset + font.italic + "password")
|
|
|
+ connection.privmsg(replyto, font.grey + "Usage: " + font.blue + self.network.command_character + "join " + font.red + font.italic + "channel " + font.reset + font.italic + "password")
|
|
|
elif cmdtype == "cmd":
|
|
|
try:
|
|
|
channel = command.split()[1]
|
|
|
@@ -183,7 +183,7 @@ def do_command(self, connection, event, user, channel):
|
|
|
if len(command.split()) != 1:
|
|
|
return
|
|
|
connection.privmsg(replyto, "Make " + connection.get_nickname() + " part a channel. Reason optional.")
|
|
|
- connection.privmsg(replyto, font.grey + "Usage: " + font.blue + self.cmdchar + "join " + font.font.red + font.italic + "channel " + font.reset + font.italic + "password")
|
|
|
+ connection.privmsg(replyto, font.grey + "Usage: " + font.blue + self.network.command_character + "join " + font.red + font.italic + "channel " + font.reset + font.italic + "password")
|
|
|
elif cmdtype == "cmd":
|
|
|
|
|
|
homeadmin = False
|
|
|
@@ -197,7 +197,7 @@ def do_command(self, connection, event, user, channel):
|
|
|
if len(command.split()) == 1: # No arguments.
|
|
|
if event.target in self.channels: # It's a channel message.
|
|
|
if not homeadmin and not targetadmin: # Insufficient rights:
|
|
|
- connection.privmsg(replyto, "Denied. You need to have at least operator status in " + font.font.red + self.homechan + font.reset + " or " + font.font + event.target + font.reset + ".")
|
|
|
+ connection.privmsg(replyto, "Denied. You need to have at least operator status in " + font.red + self.homechan + font.reset + " or " + font + event.target + font.reset + ".")
|
|
|
return
|
|
|
if event.target == self.network.home_channel:
|
|
|
connection.action(replyto, "shall not abandon it's home channel!")
|
|
|
@@ -337,7 +337,7 @@ def do_command(self, connection, event, user, channel):
|
|
|
# connection.privmsg(replyto, command.split()[1] + " is not a channel I inhabit. For help type " + font.blue + self.network.help_character + "channelfunctions" + font.reset + ".")
|
|
|
# return
|
|
|
# if not AH.is_channelfunction(command.split()[2]): # Function does not exist.
|
|
|
- # connection.privmsg(replyto, command.split()[2] + " is not a valid channel function. For a list help type: " + font.blue + self.cmdchar + "channelfunctions" + font.red + font.italic + "channel")
|
|
|
+ # connection.privmsg(replyto, command.split()[2] + " is not a valid channel function. For a list help type: " + font.blue + self.network.command_character + "channelfunctions" + font.red + font.italic + "channel")
|
|
|
# return
|
|
|
#
|
|
|
# if not command.split()[3].lower() in ["on", "off"] and not command.split()[2].lower() == "aggressiveness": # Third argument unsupported.
|
|
|
@@ -364,7 +364,7 @@ def do_command(self, connection, event, user, channel):
|
|
|
if len(command.split()) != 1:
|
|
|
return
|
|
|
connection.privmsg(replyto, "Register with NickServ.")
|
|
|
- connection.privmsg(replyto, font.grey + "Usage: " + font.blue + self.cmdchar + "registernick " + font.reset + font.italic + "email")
|
|
|
+ connection.privmsg(replyto, font.grey + "Usage: " + font.blue + self.network.command_character + "registernick " + font.reset + font.italic + "email")
|
|
|
elif cmdtype == "cmd":
|
|
|
|
|
|
if len(command.split()) == 1:
|