return self.glevel
def join(self, chan):
- self.chans.append(chan)
+ if chan not in self.chans: self.chans.append(chan)
def part(self, chan):
try:
self.chans.remove(chan)
except: pass
+ return len(self.chans) == 0
def quit(self):
- for chan in self.chans:
- self.chans.remove(chan)
+ pass
def nickchange(self, newnick):
self.nick = newnick
self.users[nick] = user
if justjoined:
- self.randbot().conn.send("WHO %s n%%ant,2" % (nick))
+ self.randbot().conn.send("WHO %s n%%ant,1" % (nick))
return user
else: