Пример #1
0
def _sig(signum, src):
  if signum in signalkey:
    ircsock.quit('Caught %s, exiting.' % signalkey[signum])
  else:
    ircsock.quit('Caught unknown signal %d, exiting.' % signum)
Пример #2
0
def _disconnect(chan, nick, reason):
  ircsock.quit(reason)