def __init__(self): modesupport.__init__(self) self.nick = "<UNKNOWN>" self.name = "" self.channels = casedict() self.notifies = notify() # # the users dict. can be used to store/track user related info self.users = casedict() self.state = server.STATE_NOTCONNECTED
def __init__(self, name): modesupport.__init__(self) self.name = name self.users = casedict() self.topic = "" self.bans = casedict() # because equal bans can differ in case :( self.invite = casedict() # I modes self.excempt = casedict() # e modes # you can set a limit to any number (positive or negative) but not 0 self.limit = 0 # no limit self.key = "" # no key self.state = channel.STATE_INACTIVE