source_p->flags |= FLAGS_PINGSENT;
return -1;
}
- if(!(source_p->flags2 & FLAGS2_PING_COOKIE))
+ if(!(source_p->flags & FLAGS_PING_COOKIE))
{
return -1;
}
}
/* hasnt finished client cap negotiation */
- if(source_p->flags2 & FLAGS2_CLICAP)
+ if(source_p->flags & FLAGS_CLICAP)
return -1;
/* still has DNSbls to validate against */
del_from_client_hash(source_p->name, source_p);
strlcpy(source_p->name, source_p->preClient->spoofnick, NICKLEN + 1);
add_to_client_hash(source_p->name, source_p);
- comm_note(source_p->localClient->fd, "Nick: %s", source_p->name);
+ comm_note(source_p->localClient->F->fd, "Nick: %s", source_p->name);
}
if(!valid_hostname(source_p->host))
sendto_one_notice(source_p, ":*** Notice -- You have an illegal character in your hostname");
strlcpy(source_p->host, source_p->sockhost, sizeof(source_p->host));
-
-#ifdef IPV6
- if(ConfigFileEntry.dot_in_ip6_addr == 1)
- strlcat(source_p->host, ".", sizeof(source_p->host));
-#endif
}
*/
/* Except "F:" clients */
if(dlink_list_length(&lclient_list) >=
- (unsigned long)GlobalSetOptions.maxclients && !IsExemptLimits(source_p))
+ (unsigned long)GlobalSetOptions.maxclients && !IsConfExemptLimits(aconf))
{
sendto_realops_snomask(SNO_FULL, L_ALL,
"Too many clients, rejecting %s[%s].", source_p->name, source_p->host);
if(IsConfExemptKline(aconf))
{
SetExemptKline(source_p);
- sendto_one_notice(source_p, ":*** You are exempt from K/D/G/X lines. congrats.");
+ sendto_one_notice(source_p, ":*** You are exempt from K/G/X lines. congrats.");
}
if(IsConfExemptGline(aconf))
/* If this user is exempt from user limits set it F lined" */
if(IsConfExemptLimits(aconf))
{
- SetExemptLimits(source_p);
- sendto_one_notice(source_p, "*** You are exempt from user limits. congrats.");
- }
-
- /* If this user is exempt from idle time outs */
- if(IsConfIdlelined(aconf))
- {
- SetIdlelined(source_p);
- sendto_one_notice(source_p, ":*** You are exempt from idle limits. congrats.");
+ sendto_one_notice(source_p, ":*** You are exempt from user limits. congrats.");
}
if(IsConfExemptFlood(aconf))
if(MyClient(source_p) && (source_p->snomask & SNO_NCHANGE) && !IsOperN(source_p))
{
- sendto_one_notice(source_p, ":*** You need oper and N flag for +s +n");
+ sendto_one_notice(source_p, ":*** You need oper and nick_changes flag for +s +n");
source_p->snomask &= ~SNO_NCHANGE; /* only tcm's really need this */
}
if(MyConnect(source_p) && (source_p->umodes & UMODE_ADMIN) &&
(!IsOperAdmin(source_p) || IsOperHiddenAdmin(source_p)))
{
- sendto_one_notice(source_p, ":*** You need oper and A flag for +a");
+ sendto_one_notice(source_p, ":*** You need oper and admin flag for +a");
source_p->umodes &= ~UMODE_ADMIN;
}