mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 20:17:16 +02:00
Some code cleanup and clarification in comments.
This commit is contained in:
parent
2640bd057a
commit
4bd567386f
12 changed files with 351 additions and 66 deletions
11
src/irc/admin.py
Normal file
11
src/irc/admin.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
"""
|
||||
This sets up a few fields in the admin interface for connecting IRC channels
|
||||
to evennia channels.
|
||||
"""
|
||||
from src.irc.models import IRCChannelMapping
|
||||
from django.contrib import admin
|
||||
|
||||
class IRCChannelMappingAdmin(admin.ModelAdmin):
|
||||
list_display = ('channel', 'irc_server_name',
|
||||
'irc_channel_name', 'is_enabled')
|
||||
admin.site.register(IRCChannelMapping, IRCChannelMappingAdmin)
|
||||
Loading…
Add table
Add a link
Reference in a new issue