'Send information about the state of a particular user.
@type user: C{str} or C{unicode}
@param user: The user receiving this information.  Only their nickname,
not the full hostmask.
@type nick: C{str} or C{unicode}
@param nick: The nickname of the user this information describes.
@type username: C{str} or C{unicode}
@param username: The user\'s username (eg, ident response)
@type hostname: C{str}
@param hostname: The user\'s hostmask
@type realName: C{str} or C{unicode}
@param realName: The user\'s real name
@type server: C{str} or C{unicode}
@param server: The name of the server to which the user is connected
@type serverInfo: C{str} or C{unicode}
@param serverInfo: A descriptive string about that server
@type oper: C{bool}
@param oper: Indicates whether the user is an IRC operator
@type idle: C{int}
@param idle: The number of seconds since the user last sent a message
@type signOn: C{int}
@param signOn: A POSIX timestamp (number of seconds since the epoch)
indicating the time the user signed on
@type channels: C{list} of C{str} or C{unicode}
@param channels: A list of the channels which the user is participating in'

def whois(self, user, nick, username, hostname, realName, server, serverInfo, oper, idle, signOn, channels):

    self.sendLine((':%s    %s    %s    %s    %s    %s    *    :%s' % (self.hostname, RPL_WHOISUSER, user, nick, username, hostname, realName)))
    self.sendLine((':%s    %s    %s    %s    %s    :%s' % (self.hostname, RPL_WHOISSERVER, user, nick, server, serverInfo)))
    if oper:
        self.sendLine((':%s    %s    %s    %s    :is    an    IRC    operator' % (self.hostname, RPL_WHOISOPERATOR, user, nick)))
    self.sendLine((':%s    %s    %s    %s    %d    %d    :seconds    idle,    signon    time' % (self.hostname, RPL_WHOISIDLE, user, nick, idle, signOn)))
    self.sendLine((':%s    %s    %s    %s    :%s' % (self.hostname, RPL_WHOISCHANNELS, user, nick, '    '.join(channels))))
    self.sendLine((':%s    %s    %s    %s    :End    of    WHOIS    list.' % (self.hostname, RPL_ENDOFWHOIS, user, nick)))
