Merge pull request #2999 from InspectorCaracal/channel-no-prefix

Fix no_prefix bug
This commit is contained in:
Griatch 2022-11-26 23:25:51 +01:00 committed by GitHub
commit 3d5b19033e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1060,7 +1060,7 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase):
# normal message
message = f"{sender_string}: {message}"
if not kwargs.get("no_prefix") or not kwargs.get("emit"):
if not kwargs.get("no_prefix") and not kwargs.get("emit"):
message = channel.channel_prefix() + message
return message