From 122b9a90d62a724f348cb636e8d78d23b7b30a8f Mon Sep 17 00:00:00 2001 From: Richard Neumann Date: Sun, 20 Dec 2020 02:08:37 +0100 Subject: [PATCH] Added raw=False kwarg to Client.run(). --- rcon/proto.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rcon/proto.py b/rcon/proto.py index 218994a..e7286cd 100644 --- a/rcon/proto.py +++ b/rcon/proto.py @@ -170,7 +170,7 @@ class Client: return True - def run(self, command: str, *arguments: str) -> str: + def run(self, command: str, *arguments: str, raw: bool = False) -> str: """Runs a command.""" packet = Packet.from_args(command, *arguments) @@ -183,4 +183,4 @@ class Client: raise - return response.payload + return response if raw else response.payload