Skip to content

Commit

Permalink
Fixed connection logs being reversed.
Browse files Browse the repository at this point in the history
  • Loading branch information
0n1udra committed Apr 12, 2022
1 parent 6cdc5a4 commit 0dd206b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/slime_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ async def serverconnectionlog(self, ctx, lines=10):

match_list = ['joined the game', 'logged in with entity id', 'left the game', 'lost connection:', 'Kicked by an operator', ]
# Get only log lines that are connection related.
log_data = backend_functions.server_log(match_list=match_list, filter_mode=True, return_reversed=True)
log_data = backend_functions.server_log(match_list=match_list, filter_mode=True)
try: log_data = log_data.strip().split('\n')
except:
await ctx.send("**ERROR:** Problem fetching connection logs, there may be nothing to fetch.")
Expand Down

0 comments on commit 0dd206b

Please sign in to comment.