Fix a really obscure bug with adding default channels. Had a string substitution that didn't match up and wasn't throwing an exception (for some weird reason).

Also add CommChannelMembershipAdmin.
This commit is contained in:
Greg Taylor 2009-06-04 04:03:16 +00:00
parent d29c6340fc
commit ddfd479ba9
4 changed files with 25 additions and 10 deletions

View file

@ -366,8 +366,12 @@ class ObjectManager(models.Manager):
# Activate the player's session and set them loose.
command.session.login(user)
print 'Registration: %s' % (command.session, user_object.get_name())
logger.log_infomsg('Registration: %s' % user_object.get_name())
user_object.emit_to("Welcome to %s, %s.\n\r" % (
ConfigValue.objects.get_configvalue('site_name'),
user_object.get_name(show_dbref=False)))
# Add the user to all of the CommChannel objects that are flagged
# is_joined_by_default.
command.session.add_default_channels()