コード例 #1
0
ファイル: m_ison.c プロジェクト: Stanford-Online/edx_irc_chat
/*
 * ms_ison added by David Taylor 04/01/2000 to handle relayed ISON requests.
 * It's slightly less bandwidth efficient than a normal ISON, but it's
 * only ever going to get relayed over one link...
 * Plus, we'll only ever relay each nick once in it's lifetime, if it
 * exists...
 * ISON :nicklist
 */
static void
ms_ison(struct Client *client_p, struct Client *source_p,
        int parc, char *parv[])
{
  if (ServerInfo.hub && IsCapable(client_p, CAP_LL))
    do_ison(client_p, NULL, source_p, parc, parv);
}
コード例 #2
0
ファイル: m_ison.c プロジェクト: diegoagudo/redebr-ircd
/*
 * m_ison added by Darren Reed 13/8/91 to act as an efficent user indicator
 * with respect to cpu/bandwidth used. Implemented for NOTIFY feature in
 * clients. Designed to reduce number of whois requests. Can process
 * nicknames in batches as long as the maximum buffer length.
 *
 * format:
 * ISON :nicklist
 */
static void
m_ison(struct Client *client_p, struct Client *source_p, int parc, char *parv[])
{
	struct Client *up = NULL;

	if(!ServerInfo.hub && uplink && IsCapable(uplink, CAP_LL))
		up = uplink;

	do_ison(client_p, up, source_p, parc, parv);
}