🐛 fix wrong space strip

This commit is contained in:
yanyongyu 2021-01-12 15:48:31 +08:00
parent e7993a4485
commit 01fa2ece6e

View File

@ -425,7 +425,7 @@ def on_command(cmd: Union[str, Tuple[str, ...]],
segment = message.pop(0)
new_message = message.__class__(
str(segment)
[len(state["_prefix"]["raw_command"]):].strip()) # type: ignore
[len(state["_prefix"]["raw_command"]):].lstrip()) # type: ignore
for new_segment in reversed(new_message):
message.insert(0, new_segment)