def start(self): last(self.cfg) if self.cfg.channel not in self.channels: self.channels.append(self.cfg.channel) self.stopped.clear() self.connected.clear() self.joined.clear() self.sock = None self.doconnect(self.cfg.server, self.cfg.nick, int(self.cfg.port)) self.connected.wait() Handler.start(self) Output.start(self) Bus.add(self) if not self.keeprunning: launch(self.keep) self.wait()
def start(self): Bus.add(self) launch(self.handler) return self
def cmd(self, txt): Bus.add(self) e = self.event(txt) Kernel.dispatch(self, e) e.wait()