irc.py
def respond(self, message, channel=None, nick=None):
        """\
        Multipurpose method for sending responses to channel or via message to
        a single user
        """
        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))
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))
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
        a single user
\ Multipurpose method for sending responses to channel or via message to a single user