{
struct Client *target_p;
time_t newts = 0;
+ char squitreason[120];
newts = atol(parv[3]);
return 0;
}
- if(!clean_username(parv[5]) || !clean_host(parv[6]))
+ if(!clean_uid(parv[8]))
{
- ServerStats.is_kill++;
- sendto_realops_snomask(SNO_DEBUG, L_ALL,
- "Bad user@host: %s@%s From: %s(via %s)",
- parv[5], parv[6], source_p->name, client_p->name);
- sendto_one(client_p, ":%s KILL %s :%s (Bad user@host)", me.id, parv[8], me.name);
+ rb_snprintf(squitreason, sizeof squitreason,
+ "Invalid UID %s for nick %s on %s",
+ parv[8], parv[1], source_p->name);
+ exit_client(client_p, client_p, client_p, squitreason);
return 0;
}
- if(!clean_uid(parv[8]))
+ if(!clean_username(parv[5]) || !clean_host(parv[6]))
{
ServerStats.is_kill++;
sendto_realops_snomask(SNO_DEBUG, L_ALL,
- "Bad UID: %s From: %s(via %s)",
- parv[8], source_p->name, client_p->name);
- sendto_one(client_p, ":%s KILL %s :%s (Bad UID)", me.id, parv[8], me.name);
+ "Bad user@host: %s@%s From: %s(via %s)",
+ parv[5], parv[6], source_p->name, client_p->name);
+ sendto_one(client_p, ":%s KILL %s :%s (Bad user@host)", me.id, parv[8], me.name);
return 0;
}
{
struct Client *target_p;
time_t newts = 0;
+ char squitreason[120];
newts = atol(parv[3]);
return 0;
}
- if(!clean_username(parv[5]) || !clean_host(parv[6]))
+ if(!clean_uid(parv[8]))
{
- ServerStats.is_kill++;
- sendto_realops_snomask(SNO_DEBUG, L_ALL,
- "Bad user@host: %s@%s From: %s(via %s)",
- parv[5], parv[6], source_p->name, client_p->name);
- sendto_one(client_p, ":%s KILL %s :%s (Bad user@host)", me.id, parv[8], me.name);
+ rb_snprintf(squitreason, sizeof squitreason,
+ "Invalid UID %s for nick %s on %s",
+ parv[8], parv[1], source_p->name);
+ exit_client(client_p, client_p, client_p, squitreason);
return 0;
}
- if(!clean_uid(parv[8]))
+ if(!clean_username(parv[5]) || !clean_host(parv[6]))
{
ServerStats.is_kill++;
sendto_realops_snomask(SNO_DEBUG, L_ALL,
- "Bad UID: %s From: %s(via %s)",
- parv[8], source_p->name, client_p->name);
- sendto_one(client_p, ":%s KILL %s :%s (Bad UID)", me.id, parv[8], me.name);
+ "Bad user@host: %s@%s From: %s(via %s)",
+ parv[5], parv[6], source_p->name, client_p->name);
+ sendto_one(client_p, ":%s KILL %s :%s (Bad user@host)", me.id, parv[8], me.name);
return 0;
}