Exemplo n.º 1
0
static void
h_gcn_new_remote_user(struct Client *source_p)
{

	if (!HasSentEob(source_p->servptr))
		return;
	sendto_realops_snomask_from(snomask_modes['F'], L_ALL, source_p->servptr,
			"Client connecting: %s (%s@%s) [%s] {%s} [%s]",
			source_p->name, source_p->username, source_p->orighost,
			show_ip(NULL, source_p) ? source_p->sockhost : "255.255.255.255",
			"?", source_p->info);
}
Exemplo n.º 2
0
static void
h_sgo_umode_changed(void *vdata)
{
	hook_data_umode_changed *data = (hook_data_umode_changed *)vdata;
	struct Client *source_p = data->client;
	if (MyConnect(source_p) || !HasSentEob(source_p->servptr))
		return;
	if (!(data->oldumodes & UMODE_OPER) && IsOper(source_p))
		sendto_realops_snomask_from(SNO_GENERAL, L_ALL, source_p->servptr,
		                            "%s (%s@%s) is now an operator",
		                            source_p->name, source_p->username, source_p->host);
}
static void
h_gla_client_exit(hook_data_client_exit *hdata)
{
	struct Client *source_p;

	source_p = hdata->target;

	if (MyConnect(source_p) || !IsClient(source_p))
		return;
	if (!strcmp(hdata->comment, "Bad user info"))
	{
		sendto_realops_snomask_from(SNO_GENERAL, L_ALL, source_p->servptr,
				"XLINE active for %s[%s@%s]",
				source_p->name, source_p->username, source_p->host);
	}
	else if (ConfigFileEntry.kline_reason != NULL &&
			!strcmp(hdata->comment, ConfigFileEntry.kline_reason))
	{
		sendto_realops_snomask_from(SNO_GENERAL, L_ALL, source_p->servptr,
				"K/D/GLINE active for %s[%s@%s]",
				source_p->name, source_p->username, source_p->host);
	}
}
Exemplo n.º 4
0
static void
h_gcn_client_exit(hook_data_client_exit *hdata)
{
	struct Client *source_p;

	source_p = hdata->target;

	if (MyConnect(source_p) || !IsClient(source_p))
		return;
	if (!HasSentEob(source_p->servptr))
		return;
	sendto_realops_snomask_from(snomask_modes['F'], L_ALL, source_p->servptr,
			     "Client exiting: %s (%s@%s) [%s] [%s]",
			     source_p->name,
			     source_p->username, source_p->host, hdata->comment,
                             show_ip(NULL, source_p) ? source_p->sockhost : "255.255.255.255");
}