m_kline: check only the added K-line
This commit is contained in:
parent
10df26d08f
commit
b068a4b518
1 changed files with 3 additions and 22 deletions
|
@ -85,6 +85,7 @@ static void remove_permkline_match(struct Client *, struct ConfItem *);
|
||||||
static bool remove_temp_kline(struct Client *, struct ConfItem *);
|
static bool remove_temp_kline(struct Client *, struct ConfItem *);
|
||||||
static void remove_prop_kline(struct Client *, struct ConfItem *);
|
static void remove_prop_kline(struct Client *, struct ConfItem *);
|
||||||
|
|
||||||
|
|
||||||
/* mo_kline()
|
/* mo_kline()
|
||||||
*
|
*
|
||||||
* parv[1] - temp time or user@host
|
* parv[1] - temp time or user@host
|
||||||
|
@ -215,17 +216,7 @@ mo_kline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
|
||||||
else
|
else
|
||||||
apply_kline(source_p, aconf, reason, oper_reason);
|
apply_kline(source_p, aconf, reason, oper_reason);
|
||||||
|
|
||||||
if(ConfigFileEntry.kline_delay)
|
check_one_kline(aconf);
|
||||||
{
|
|
||||||
if(!kline_queued)
|
|
||||||
{
|
|
||||||
rb_event_addonce("check_klines", check_klines_event, NULL,
|
|
||||||
ConfigFileEntry.kline_delay);
|
|
||||||
kline_queued = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
check_klines();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ms_kline()
|
/* ms_kline()
|
||||||
|
@ -325,17 +316,7 @@ handle_remote_kline(struct Client *source_p, int tkline_time,
|
||||||
else
|
else
|
||||||
apply_kline(source_p, aconf, reason, oper_reason);
|
apply_kline(source_p, aconf, reason, oper_reason);
|
||||||
|
|
||||||
if(ConfigFileEntry.kline_delay)
|
check_one_kline(aconf);
|
||||||
{
|
|
||||||
if(!kline_queued)
|
|
||||||
{
|
|
||||||
rb_event_addonce("check_klines", check_klines_event, NULL,
|
|
||||||
ConfigFileEntry.kline_delay);
|
|
||||||
kline_queued = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
check_klines();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* mo_unkline()
|
/* mo_unkline()
|
||||||
|
|
Loading…
Add table
Reference in a new issue