'Called when we get a message.'

def irc_PRIVMSG(self, prefix, params):

    user = prefix
    channel = params[0]
    message = params[(-1)]
    if (not message):
        return
    if (message[0] == X_DELIM):
        m = ctcpExtract(message)
        if m['extended']:
            self.ctcpQuery(user, channel, m['extended'])
        if (not m['normal']):
            return
        message = '    '.join(m['normal'])
    self.privmsg(user, channel, message)
