def _sig(signum, src): if signum in signalkey: ircsock.quit('Caught %s, exiting.' % signalkey[signum]) else: ircsock.quit('Caught unknown signal %d, exiting.' % signum)
def _disconnect(chan, nick, reason): ircsock.quit(reason)