if((aconf = find_xline_mask(name)) != NULL)
{
sendto_one(source_p, ":%s NOTICE %s :[%s] already X-Lined by [%s] - %s",
- me.name, source_p->name, name, aconf->name, aconf->passwd);
+ me.name, source_p->name, name, aconf->host, aconf->passwd);
return 0;
}
/* already xlined */
if((aconf = find_xline_mask(name)) != NULL)
{
- sendto_one_notice(source_p, ":[%s] already X-Lined by [%s] - %s", name, aconf->name,
+ sendto_one_notice(source_p, ":[%s] already X-Lined by [%s] - %s", name, aconf->host,
aconf->passwd);
return;
}
aconf = make_conf();
aconf->status = CONF_XLINE;
-
- if(strstr(name, "\\s"))
- {
- char *tmp = LOCAL_COPY(name);
- char *orig = tmp;
- char *new = tmp;
-
- while(*orig)
- {
- if(*orig == '\\' && *(orig + 1) != '\0')
- {
- if(*(orig + 1) == 's')
- {
- *new++ = ' ';
- orig += 2;
- }
- /* otherwise skip that and the escaped
- * character after it, so we dont mistake
- * \\s as \s --fl
- */
- else
- {
- *new++ = *orig++;
- *new++ = *orig++;
- }
- }
- else
- *new++ = *orig++;
- }
-
- *new = '\0';
- aconf->name = rb_strdup(tmp);
- }
- else
- aconf->name = rb_strdup(name);
-
+ aconf->host = rb_strdup(name);
aconf->passwd = rb_strdup(reason);
- collapse(aconf->name);
+ collapse(aconf->host);
if(temp_time > 0)
{
sendto_realops_snomask(SNO_GENERAL, L_ALL,
"%s added temporary %d min. X-Line for [%s] [%s]",
get_oper_name(source_p), temp_time / 60,
- aconf->name, reason);
+ aconf->host, reason);
ilog(L_KLINE, "X %s %d %s %s",
get_oper_name(source_p), temp_time / 60, name, reason);
sendto_one_notice(source_p, ":Added temporary %d min. X-Line [%s]",
- temp_time / 60, aconf->name);
+ temp_time / 60, aconf->host);
}
else
{
sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s added X-Line for [%s] [%s]",
- get_oper_name(source_p), aconf->name, aconf->passwd);
+ get_oper_name(source_p), aconf->host, aconf->passwd);
sendto_one_notice(source_p, ":Added X-Line for [%s] [%s]",
- aconf->name, aconf->passwd);
+ aconf->host, aconf->passwd);
- bandb_add(BANDB_XLINE, source_p, aconf->name, NULL, aconf->passwd, NULL, 0);
+ bandb_add(BANDB_XLINE, source_p, aconf->host, NULL, aconf->passwd, NULL, 0);
ilog(L_KLINE, "X %s 0 %s %s", get_oper_name(source_p), name, aconf->passwd);
}
{
aconf = ptr->data;
- if(!irccmp(aconf->name, name))
+ if(!irccmp(aconf->host, name))
{
if(!aconf->hold)
{
ilog(L_KLINE, "UX %s %s", get_oper_name(source_p), name);
}
- remove_reject_mask(aconf->name, NULL);
+ remove_reject_mask(aconf->host, NULL);
free_conf(aconf);
rb_dlinkDestroy(ptr, &xline_conf_list);
return;