Create a Public channel by default, make a channel's name and ansi_name the same thing on initial creation.
This commit is contained in:
parent
bfafdbf9c9
commit
485204e979
2 changed files with 3 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ def create_channel(cdat):
|
|||
"""
|
||||
new_chan = CommChannel()
|
||||
new_chan.name = ansi.parse_ansi(cdat["name"], strip_ansi=True)
|
||||
new_chan.header = "[%s]" % (ansi.parse_ansi(cdat["name"]),)
|
||||
new_chan.ansi_name = "[%s]" % (ansi.parse_ansi(cdat["name"]),)
|
||||
new_chan.set_owner(cdat["owner"])
|
||||
new_chan.save()
|
||||
return new_chan
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue