From 42d7cd516d8eda1d88f8f1d775db0bfa6b1c21ec Mon Sep 17 00:00:00 2001 From: Elmon11 Date: Wed, 2 Dec 2020 22:41:51 +0100 Subject: [PATCH] Update server_commands.py --- commands/server_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/server_commands.py b/commands/server_commands.py index e5c2331..ed41b4f 100644 --- a/commands/server_commands.py +++ b/commands/server_commands.py @@ -111,8 +111,8 @@ class ServerCommands(commands.Cog): 'mv, gtfo, kick, mute or warn from discord' em = discord.Embed() command = '' - for x in range(len(args)): - command += f'{args[x]} ' + for arg in args: + command += f'{arg} ' try: if args[0] in ['mute', 'stfu', 'gtfo', 'ban', 'unban', 'unmute', 'smite', 'noob', 'tban', 'tempban', 'warn', 'mv', 'kick', 'cc','say']: self.bot.telnet_object.session.write(bytes(command, 'ascii') + b"\r\n")