Esempio n. 1
0
 def __init__(self, irc, name):
     if '!' in name:
         name, self.username, self.hostname = glob.str_to_tuple(name)
     super(IRCUser, self).__init__(irc, name)
     self.channels = set()
     self.permissions = {}
     self.base = self
Esempio n. 2
0
 def __init__(self, irc, name):
     if '!' in name:
         name, self.username, self.hostname = glob.str_to_tuple(name)
     super(IRCUser, self).__init__(irc, name)
     self.channels = set()
     self.permissions = {}
     self.base = self
Esempio n. 3
0
 def getNick(user):
     return glob.str_to_tuple(user)[0]
Esempio n. 4
0
 def update_info(self, info):
     info = glob.str_to_tuple(info)
     assert self.name == info[0]
     self.username = info[1] or self.username
     self.hostname = info[2] or self.hostname
Esempio n. 5
0
 def getNick(user):
     return glob.str_to_tuple(user)[0]
Esempio n. 6
0
 def update_info(self, info):
     info = glob.str_to_tuple(info)
     assert self.name == info[0]
     self.username = info[1] or self.username
     self.hostname = info[2] or self.hostname