const char *user, const char *host);
static void remove_permkline_match(struct Client *, struct ConfItem *);
static int flush_write(struct Client *, FILE *, const char *, const char *);
-static int remove_temp_kline(struct ConfItem *);
+static int remove_temp_kline(struct Client *, struct ConfItem *);
/* mo_kline()
*
return 0;
}
- if(remove_temp_kline(aconf))
- {
- sendto_one_notice(source_p, ":Un-klined [%s@%s] from temporary k-lines", user, host);
- sendto_realops_snomask(SNO_GENERAL, L_ALL,
- "%s has removed the temporary K-Line for: [%s@%s]",
- get_oper_name(source_p), user, host);
- ilog(L_KLINE, "UK %s %s %s",
- get_oper_name(source_p), user, host);
+ if(remove_temp_kline(source_p, aconf))
return 0;
- }
remove_permkline_match(source_p, aconf);
return;
}
- if(remove_temp_kline(aconf))
- {
- sendto_one_notice(source_p,
- ":Un-klined [%s@%s] from temporary k-lines",
- user, host);
-
- sendto_realops_snomask(SNO_GENERAL, L_ALL,
- "%s has removed the temporary K-Line for: [%s@%s]",
- get_oper_name(source_p), user, host);
-
- ilog(L_KLINE, "UK %s %s %s",
- get_oper_name(source_p), user, host);
+ if(remove_temp_kline(source_p, aconf))
return;
- }
remove_permkline_match(source_p, aconf);
}
* side effects - tries to unkline anything that matches
*/
static int
-remove_temp_kline(struct ConfItem *aconf)
+remove_temp_kline(struct Client *source_p, struct ConfItem *aconf)
{
dlink_node *ptr;
int i;
{
if (aconf == ptr->data)
{
+ sendto_one_notice(source_p,
+ ":Un-klined [%s@%s] from temporary k-lines",
+ aconf->user, aconf->host);
+ sendto_realops_snomask(SNO_GENERAL, L_ALL,
+ "%s has removed the temporary K-Line for: [%s@%s]",
+ get_oper_name(source_p), aconf->user, aconf->host);
+
+ ilog(L_KLINE, "UK %s %s %s",
+ get_oper_name(source_p),
+ aconf->user, aconf->host);
dlinkDestroy(ptr, &temp_klines[i]);
remove_reject_mask(aconf->user, aconf->host);
delete_one_address_conf(aconf->host, aconf);