mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 10:16:32 +01:00
Fixes to player creation that may not actually do anything. Also add default flagged channels with the default alias being the first three characters of the channel's name.
This commit is contained in:
parent
4c562cd6ce
commit
f0c129f730
3 changed files with 22 additions and 3 deletions
|
|
@ -976,6 +976,12 @@ class CommChannel(models.Model):
|
|||
|
||||
# They've failed to meet any of the above conditions.
|
||||
return False
|
||||
|
||||
def get_default_chan_alias(self):
|
||||
"""
|
||||
Returns a default channel alias for the channel if none is provided.
|
||||
"""
|
||||
return self.name[:3].lower()
|
||||
|
||||
class CommChannelAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'owner')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue