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:
Greg Taylor 2007-05-24 19:53:36 +00:00
parent bfafdbf9c9
commit 485204e979
2 changed files with 3 additions and 2 deletions

View file

@ -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