|
|
@@ -13,10 +13,18 @@ grey = "\x0314"
|
|
|
|
|
|
def do_command(self, connection, event):
|
|
|
cmdtype, trigger, command, replyto = CH.disect_command(self, event)
|
|
|
- if not command: # Do nothing if there is no command.
|
|
|
+
|
|
|
+ # Do nothing if there is no command.
|
|
|
+ if not command:
|
|
|
+ return
|
|
|
+ try:
|
|
|
+ command.split()[0]
|
|
|
+ except:
|
|
|
return
|
|
|
+
|
|
|
+ # Do noting if the games channel function is off and it's a channel message.
|
|
|
if not self.db.one("SELECT statistics_commands FROM channels WHERE name='" + event.target + "' AND network='" + self.network + "'") and not event.target == connection.get_nickname():
|
|
|
- return # Do noting if the games channel function is off and it's a channel message.
|
|
|
+ return
|
|
|
|
|
|
if command == "cmd" or command == "cmds" or command == "commands":
|
|
|
if cmdtype == "cmd":
|