Fixed formatting on @clist.

This commit is contained in:
Greg Taylor 2009-04-29 01:03:26 +00:00
parent 547a5dd139
commit 9954700bdd
2 changed files with 5 additions and 4 deletions

View file

@ -129,15 +129,15 @@ def cmd_clist(command):
session = command.session
source_object = command.source_object
source_object.emit_to("** Channel Owner Description")
source_object.emit_to("** Channel Owner Description")
for chan in src.comsys.get_all_channels():
source_object.emit_to("%s%s %-14.13s%-22.15s%s" %
source_object.emit_to("%s%s %-15.14s%-22.15s%s" %
('-',
'-',
chan.get_name(),
chan.get_owner().get_name(show_dbref=False),
chan.description))
source_object.emit_to("-- End of Channel List --")
source_object.emit_to("** End of Channel List **")
GLOBAL_CMD_TABLE.add_command("@clist", cmd_clist),
def cmd_cdestroy(command):

View file

@ -63,7 +63,8 @@ def create_channels():
Creates some sensible default channels.
"""
god_user_obj = get_god_obj()
chan_pub = comsys.create_channel("Public", god_user_obj, description="Public Discussion")
chan_pub = comsys.create_channel("Public", god_user_obj,
description="Public Discussion")
chan_pub.is_joined_by_default = True
chan_pub.save()
comsys.create_channel(settings.COMMCHAN_MUD_INFO, god_user_obj,