mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 05:57:16 +02:00
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
|
|
@ -1,2 +1,3 @@
|
|||
INSERT INTO "objects_object" VALUES(1,'Wizard','Wizard',1,0,2,1,'',2,'','CONNECTED','2007-04-25');
|
||||
INSERT INTO "objects_object" VALUES(2,'Limbo','Limbo',1,NULL,NULL,2,'Welcome to your new Evennia-based game. From here you are ready to begin development. If you should need help or would like to participate in community discussions, visit http://evennia.com.',NULL,'','','2007-04-25');
|
||||
INSERT INTO "objects_object" VALUES(2,'Limbo','Limbo',1,NULL,NULL,2,'Welcome to your new Evennia-based game. From here you are ready to begin development. If you should need help or would like to participate in community discussions, visit http://evennia.com.',NULL,'','','2007-04-25');
|
||||
INSERT INTO "objects_commchannel" VALUES(1,'Public','Public',1,'Public Discussion');
|
||||
|
|
@ -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