mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 16:56:32 +01:00
Third time's a charm?
This commit is contained in:
parent
4c6f7b9db8
commit
26bec8a281
1 changed files with 5 additions and 5 deletions
|
|
@ -206,14 +206,14 @@ def send_cmessage(channel_name, message):
|
|||
"""
|
||||
for user in get_cwho_list(channel_name, return_muted=False):
|
||||
user.msg(message)
|
||||
|
||||
chan_message = CommChannelMessage()
|
||||
|
||||
|
||||
chan_message = CommChannelMessage()
|
||||
|
||||
try:
|
||||
chan_message.channel = get_cobj_from_name(channel_name)
|
||||
except:
|
||||
print "send_cmessage(): Can't find channel: %s" % (channel_name,)
|
||||
|
||||
|
||||
chan_message.message = message
|
||||
chan_message.save()
|
||||
|
||||
|
|
@ -253,4 +253,4 @@ def cname_search(search_text, exact=False):
|
|||
if exact:
|
||||
return CommChannel.objects.filter(name__iexact=search_text)
|
||||
else:
|
||||
return CommChannel.objects.filter(name__istartswith=search_text)
|
||||
return CommChannel.objects.filter(name__istartswith=search_text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue