mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 09:46:32 +01:00
Handle channel.msg tuple-form outputfuncs. Resolve #2699.
This commit is contained in:
parent
6d6e13595c
commit
3992f37dad
1 changed files with 5 additions and 6 deletions
|
|
@ -5,12 +5,12 @@ Account that are controlled by the server.
|
|||
"""
|
||||
|
||||
import time
|
||||
|
||||
from django.conf import settings
|
||||
from django.utils.translation import gettext as _
|
||||
from evennia.accounts.accounts import DefaultAccount
|
||||
from evennia.scripts.scripts import DefaultScript
|
||||
from evennia.utils import search
|
||||
from evennia.utils import utils
|
||||
from django.utils.translation import gettext as _
|
||||
from evennia.utils import search, utils
|
||||
|
||||
_IDLE_TIMEOUT = settings.IDLE_TIMEOUT
|
||||
|
||||
|
|
@ -538,9 +538,8 @@ class GrapevineBot(Bot):
|
|||
if not from_obj or from_obj != [self]:
|
||||
# send outputfunc channel(msg, chan, sender)
|
||||
|
||||
# TODO we should refactor channel formatting to operate on the
|
||||
# account/object level instead. For now, remove the channel/name
|
||||
# prefix since we pass that explicitly anyway
|
||||
text = text[0] if isinstance(text, (tuple, list)) else text
|
||||
|
||||
prefix, text = text.split(":", 1)
|
||||
|
||||
super().msg(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue