aconf = make_conf();
aconf->status = CONF_RESV_CHANNEL;
aconf->port = 0;
- aconf->name = rb_strdup(name);
+ aconf->host = rb_strdup(name);
aconf->passwd = rb_strdup(reason);
- add_to_resv_hash(aconf->name, aconf);
+ add_to_resv_hash(aconf->host, aconf);
if(temp_time > 0)
{
temp_time / 60, name);
}
else
+ {
+ sendto_realops_snomask(SNO_GENERAL, L_ALL,
+ "%s added RESV for [%s] [%s]",
+ get_oper_name(source_p), name, reason);
+ ilog(L_KLINE, "R %s 0 %s %s",
+ get_oper_name(source_p), name, reason);
+ sendto_one_notice(source_p, ":Added RESV [%s]", name);
+
bandb_add(BANDB_RESV, source_p, aconf->host, NULL, aconf->passwd, NULL, 0);
+ }
}
else if(clean_resv_nick(name))
{
aconf = make_conf();
aconf->status = CONF_RESV_NICK;
aconf->port = 0;
- aconf->name = rb_strdup(name);
+ aconf->host = rb_strdup(name);
aconf->passwd = rb_strdup(reason);
rb_dlinkAddAlloc(aconf, &resv_conf_list);
temp_time / 60, name);
}
else
+ {
+ sendto_realops_snomask(SNO_GENERAL, L_ALL,
+ "%s added RESV for [%s] [%s]",
+ get_oper_name(source_p), name, reason);
+ ilog(L_KLINE, "R %s 0 %s %s",
+ get_oper_name(source_p), name, reason);
+ sendto_one_notice(source_p, ":Added RESV [%s]", name);
+
bandb_add(BANDB_RESV, source_p, aconf->host, NULL, aconf->passwd, NULL, 0);
+ }
}
else
sendto_one_notice(source_p, ":You have specified an invalid resv: [%s]", name);
{
aconf = ptr->data;
- if(irccmp(aconf->name, name))
+ if(irccmp(aconf->host, name))
aconf = NULL;
else
break;