sendto_match_servs(source_p, target,
CAP_ENCAP, NOCAPS,
"ENCAP %s RESV 0 %s 0 :%s",
- target, aconf->name, aconf->passwd);
+ target, aconf->host, aconf->passwd);
}
HASH_WALK(i, R_MAX, ptr, resvTable)
sendto_match_servs(source_p, target,
CAP_ENCAP, NOCAPS,
"ENCAP %s RESV 0 %s 0 :%s",
- target, aconf->name, aconf->passwd);
+ target, aconf->host, aconf->passwd);
}
HASH_WALK_END
aconf = ptr->data;
if (aconf->hold)
continue;
- mask2 = expand_xline(aconf->name);
+ mask2 = expand_xline(aconf->host);
if (mask2 == NULL)
{
sendto_one_notice(source_p, ":Skipping xline [%s]",
- aconf->name);
+ aconf->host);
continue;
}
sendto_match_servs(source_p, target,
if(aconf->hold)
sendto_one_numeric(source_p, RPL_STATSQLINE,
form_str(RPL_STATSQLINE),
- 'q', aconf->port, aconf->name, aconf->passwd);
+ 'q', aconf->port, aconf->host, aconf->passwd);
}
HASH_WALK(i, R_MAX, ptr, resvTable)
if(aconf->hold)
sendto_one_numeric(source_p, RPL_STATSQLINE,
form_str(RPL_STATSQLINE),
- 'q', aconf->port, aconf->name, aconf->passwd);
+ 'q', aconf->port, aconf->host, aconf->passwd);
}
HASH_WALK_END
}
me.name, source_p->name,
resv_p->hold ? 'q' : 'Q',
resv_p->hold ? (long) ((resv_p->hold - rb_current_time()) / 60) : 0L,
- resv_p->name, resv_p->passwd);
+ resv_p->host, resv_p->passwd);
/* this is a false positive, so make sure it isn't counted in stats q
* --nenolod
*/
me.name, source_p->name,
resv_p->hold ? 'q' : 'Q',
resv_p->hold ? (long) ((resv_p->hold - rb_current_time()) / 60) : 0L,
- resv_p->name, resv_p->passwd);
+ resv_p->host, resv_p->passwd);
/* this is a false positive, so make sure it isn't counted in stats q
* --nenolod
me.name, source_p->name,
aconf->hold ? 'x' : 'X',
aconf->hold ? (long) ((aconf->hold - rb_current_time()) / 60) : 0L,
- aconf->name, aconf->passwd);
+ aconf->host, aconf->passwd);
return 0;
}
sendto_realops_snomask(SNO_GENERAL, L_ALL,
"XLINE over-ruled for %s, client is kline_exempt [%s]",
get_client_name(client_p, HIDE_IP),
- aconf->name);
+ aconf->host);
continue;
}
aconf = make_conf();
aconf->status = CONF_XLINE;
- aconf->name = encoded;
+ aconf->host = encoded;
aconf->passwd = rb_strdup(reason_field);
rb_dlinkAddAlloc(aconf, &xline_conf_list);
aconf->status = CONF_RESV_CHANNEL;
aconf->port = 0;
- aconf->name = rb_strdup(host_field);
+ aconf->host = rb_strdup(host_field);
aconf->passwd = rb_strdup(reason_field);
- add_to_resv_hash(aconf->name, aconf);
+ add_to_resv_hash(aconf->host, aconf);
}
else if(clean_resv_nick(host_field))
{
aconf->status = CONF_RESV_NICK;
aconf->port = 0;
- aconf->name = rb_strdup(host_field);
+ aconf->host = rb_strdup(host_field);
aconf->passwd = rb_strdup(reason_field);
rb_dlinkAddAlloc(aconf, &resv_conf_list);
}
{
aconf = ptr->data;
- if(match_esc(aconf->name, gecos))
+ if(match_esc(aconf->host, gecos))
{
if(counter)
aconf->port++;
{
aconf = ptr->data;
- if(!irccmp(aconf->name, gecos))
+ if(!irccmp(aconf->host, gecos))
return aconf;
}
{
aconf = ptr->data;
- if(match_esc(aconf->name, name))
+ if(match_esc(aconf->host, name))
{
aconf->port++;
return aconf;
{
aconf = ptr->data;
- if(!irccmp(aconf->name, name))
+ if(!irccmp(aconf->host, name))
return aconf;
}
if(ConfigFileEntry.tkline_expire_notices)
sendto_realops_snomask(SNO_GENERAL, L_ALL,
"Temporary RESV for [%s] expired",
- aconf->name);
+ aconf->host);
free_conf(aconf);
rb_dlinkDestroy(ptr, &resvTable[i]);
if(ConfigFileEntry.tkline_expire_notices)
sendto_realops_snomask(SNO_GENERAL, L_ALL,
"Temporary RESV for [%s] expired",
- aconf->name);
+ aconf->host);
free_conf(aconf);
rb_dlinkDestroy(ptr, &resv_conf_list);
}
if(ConfigFileEntry.tkline_expire_notices)
sendto_realops_snomask(SNO_GENERAL, L_ALL,
"Temporary X-line for [%s] expired",
- aconf->name);
+ aconf->host);
free_conf(aconf);
rb_dlinkDestroy(ptr, &xline_conf_list);
}
(xconf = find_xline(source_p->info, 1)) != NULL)
{
ServerStats.is_ref++;
- add_reject(source_p, xconf->name, NULL);
+ add_reject(source_p, xconf->host, NULL);
exit_client(client_p, source_p, &me, "Bad user info");
return CLIENT_EXITED;
}