fix no_prefix bug

This commit is contained in:
InspectorCaracal 2022-11-25 20:58:43 -07:00 committed by GitHub
parent 7114aea912
commit b6f0411481

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