From a4225d29e5f81d55f818b0b5856750f9050bda56 Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 19 Apr 2020 15:32:27 +0200 Subject: [PATCH] document Command Processor __call__ tree --- MultiServer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MultiServer.py b/MultiServer.py index b068acfd..f591845d 100644 --- a/MultiServer.py +++ b/MultiServer.py @@ -378,14 +378,14 @@ class CommandProcessor(metaclass=CommandMeta): if not method: self._error_unknown_command(basecommand[1:]) else: - if getattr(method, "raw_text", False): + if getattr(method, "raw_text", False): # method is requesting unprocessed text data arg = raw.split(maxsplit=1) if len(arg) > 1: - method(self, arg[1]) + method(self, arg[1]) # argument text was found, so pass it along else: - method(self) + method(self) # argument may be optional, try running without args else: - method(self, *command[1:]) + method(self, *command[1:]) # pass each word as argument else: self.default(raw) except Exception as e: