22 lines
418 B
Python
22 lines
418 B
Python
|
"""Track basic IRC settings and similar."""
|
||
|
|
||
|
import logging
|
||
|
|
||
|
from django.db import models
|
||
|
|
||
|
|
||
|
log = logging.getLogger('ircbot.models')
|
||
|
|
||
|
|
||
|
class IrcChannel(models.Model):
|
||
|
|
||
|
"""Track channel settings."""
|
||
|
|
||
|
name = models.CharField(max_length=200, unique=True)
|
||
|
autojoin = models.BooleanField(default=False)
|
||
|
|
||
|
def __unicode__(self):
|
||
|
"""String representation."""
|
||
|
|
||
|
return u"{0:s}".format(self.name)
|