def respond(self, message, channel=None, nick=None):
        if channel:
            if not channel.startswith('#'):
                channel = '#%s' % channel
            self.send('PRIVMSG %s :%s' % (channel, message))
        elif nick:
            self.send('PRIVMSG %s :%s' % (nick, message))
Multipurpose method for sending responses to channel or via message to
dataset/ETHPy150Open coleifer/irc/irc.py/IRCConnection.respond