|
|
@@ -66,7 +66,7 @@ def do_command(self, connection, event):
|
|
|
|
|
|
elif one == 'quit':
|
|
|
if cmdtype == 'help': # Display help text.
|
|
|
- if len(command.split()) is not 1:
|
|
|
+ if len(command.split()) != 1:
|
|
|
return
|
|
|
connection.privmsg(replyto, "Disconnect and terminate " + connection.get_nickname() + ". Optionally with reason.")
|
|
|
connection.privmsg(replyto, grey + "Usage: " + blue + "!quit " + font.reset + font.italic + "reason")
|
|
|
@@ -86,7 +86,7 @@ def do_command(self, connection, event):
|
|
|
connection.privmsg(replyto, "Denied, you need to have operator status or higher in " + font.font.red + self.network.home_channel + font.reset + ".")
|
|
|
return
|
|
|
if cmdtype == "help": # Display help text.
|
|
|
- if len(command.split()) is not 1:
|
|
|
+ if len(command.split()) != 1:
|
|
|
return
|
|
|
connection.privmsg(replyto, "Reconnect " + connection.get_nickname() + ". Reason optional.")
|
|
|
connection.privmsg(replyto, grey + "Usage: " + blue + "!reconnect " + font.reset + font.italic + "reason")
|
|
|
@@ -101,7 +101,7 @@ def do_command(self, connection, event):
|
|
|
connection.privmsg(replyto, "Denied, you need to have voiced status or higher in " + font.font.red + self.network.home_channel + font.reset + ".")
|
|
|
return
|
|
|
if cmdtype == "help": # Display help text.
|
|
|
- if len(command.split()) is not 1:
|
|
|
+ if len(command.split()) != 1:
|
|
|
return
|
|
|
connection.privmsg(replyto, "Let " + connection.get_nickname() + " try to recover " + connection.nickname + " as nickname.")
|
|
|
elif cmdtype == "cmd":
|
|
|
@@ -116,7 +116,7 @@ def do_command(self, connection, event):
|
|
|
connection.privmsg(replyto, "Denied, you need to have operator status or higher in " + font.font.red + self.network.home_channel + font.reset + ".")
|
|
|
return
|
|
|
if cmdtype == "help": #Display help text.
|
|
|
- if len(command.split()) is not 1:
|
|
|
+ if len(command.split()) != 1:
|
|
|
return
|
|
|
connection.privmsg(replyto, "Make " + connection.get_nickname() + " join a channel. Password optional.")
|
|
|
connection.privmsg(replyto, grey + "Usage: " + blue + self.cmdchar + "join " + font.font.red + font.italic + "channel " + font.reset + font.italic + "password")
|
|
|
@@ -135,7 +135,7 @@ def do_command(self, connection, event):
|
|
|
|
|
|
elif one == "part":
|
|
|
if cmdtype == "help": #Display help text.
|
|
|
- if len(command.split()) is not 1:
|
|
|
+ if len(command.split()) != 1:
|
|
|
return
|
|
|
connection.privmsg(replyto, "Make " + connection.get_nickname() + " part a channel. Reason optional.")
|
|
|
connection.privmsg(replyto, grey + "Usage: " + blue + self.cmdchar + "join " + font.font.red + font.italic + "channel " + font.reset + font.italic + "password")
|
|
|
@@ -177,7 +177,7 @@ def do_command(self, connection, event):
|
|
|
|
|
|
elif one == "msg" or command.split(maxsplit=1)[0] == "act":
|
|
|
if cmdtype == "help": #Display help text.
|
|
|
- if len(command.split()) is not 1:
|
|
|
+ if len(command.split()) != 1:
|
|
|
return
|
|
|
if command.split(maxsplit=1)[0] == "act":
|
|
|
message = "Let " + connection.get_nickname() + " send an action to a channel."
|
|
|
@@ -232,7 +232,7 @@ def do_command(self, connection, event):
|
|
|
|
|
|
# elif one == "channelfunctions":
|
|
|
# if cmdtype == "help": #Display help text. # Help code block first, as it is impossible to predict for what channel a later command is going to be issued. Rights filtering after help test.
|
|
|
- # if len(command.split()) is not 1:
|
|
|
+ # if len(command.split()) != 1:
|
|
|
# return
|
|
|
# connection.privmsg(replyto, "Display or toggle the status channel functions. Channel, function and value optional. Get a description of a functio via the help argument.")
|
|
|
# connection.privmsg(replyto, grey + "Usage: " + blue + "!channelfunctions " + font.red + font.italic + "channel " + font.reset + font.italic + "function value")
|
|
|
@@ -316,7 +316,7 @@ def do_command(self, connection, event):
|
|
|
connection.privmsg(replyto, "Denied, you need to be the owner of " + font.red + self.network.home_channel + font.reset + ".")
|
|
|
return
|
|
|
if cmdtype == "help": # Display help text.
|
|
|
- if len(command.split()) is not 1:
|
|
|
+ if len(command.split()) != 1:
|
|
|
return
|
|
|
connection.privmsg(replyto, "Register with NickServ.")
|
|
|
connection.privmsg(replyto, grey + "Usage: " + blue + self.cmdchar + "registernick " + font.reset + font.italic + "email")
|
|
|
@@ -339,7 +339,7 @@ def do_command(self, connection, event):
|
|
|
connection.privmsg(replyto, "Denied, you need to be the owner of " + font.red + self.network.home_channel + font.reset + ".")
|
|
|
return
|
|
|
if cmdtype == "help": # Display help text.
|
|
|
- if len(command.split()) is not 1:
|
|
|
+ if len(command.split()) != 1:
|
|
|
return
|
|
|
connection.privmsg(replyto, "Ban all nicknames and usernames for a host in all channels.")
|
|
|
connection.privmsg(replyto, grey + "Example: " + blue + self.cmdchar + "banall " + font.reset + font.italic + "host")
|