def signal_handler(self, signum, frame):
        self.irc_c.RAW("QUIT :Received a ctrl+c exiting")
        self.reconnect = False

    #Register our own hooks for basic protocol handling
Handle Ctrl+C
dataset/ETHPy150Open facebook/pyaib/pyaib/irc.py/Client.signal_handler