Пример #1
0
 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()
Пример #2
0
 def start(self):
     Bus.add(self)
     launch(self.handler)
     return self
Пример #3
0
 def cmd(self, txt):
     Bus.add(self)
     e = self.event(txt)
     Kernel.dispatch(self, e)
     e.wait()