mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 11:23:12 +02:00
- Rewrote check_pings and the whole way banning people are handled. Do loop.do_banch
to provoke a bans check. This possibly fixes #00001702, #0000137 and other funny bugs.
This commit is contained in:
@@ -211,7 +211,6 @@ DLLFUNC int m_akill(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
sendto_serv_butone(cptr, ":%s AKILL %s %s",
|
||||
IsServer(cptr) ? parv[0] : me.name, hostmask, usermask);
|
||||
|
||||
|
||||
check_pings(TStime(), 1);
|
||||
loop.do_bancheck = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -246,6 +246,6 @@ DLLFUNC int m_kline(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
bconf->reason = parv[2] ? strdup(parv[2]) : NULL;
|
||||
bconf->flag.type2 = CONF_BAN_TYPE_TEMPORARY;
|
||||
AddListItem(bconf, conf_ban);
|
||||
check_pings(TStime(), 1);
|
||||
loop.do_bancheck = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -213,6 +213,6 @@ DLLFUNC int m_rakill(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
sendto_serv_butone(cptr, ":%s RAKILL %s %s",
|
||||
IsServer(cptr) ? parv[0] : me.name, hostmask, usermask);
|
||||
|
||||
check_pings(TStime(), 1);
|
||||
loop.do_bancheck = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -180,6 +180,8 @@ DLLFUNC int m_unkline(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
return 0;
|
||||
}
|
||||
/* This wasn't here before -- Barubary */
|
||||
check_pings(TStime(), 1);
|
||||
/* check_pings crap */
|
||||
/* No, and it shouldn't have been, dork. It crashes the IRCd randomly. -Stskeeps */
|
||||
loop.do_bancheck = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
+2
-11
@@ -260,22 +260,13 @@ DLLFUNC int m_zline(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
||||
{
|
||||
goto propo_label;
|
||||
}
|
||||
if (!match(mask, inetntoa((char *)&cptr->ip)))
|
||||
{
|
||||
sendto_realops("Tried to zap cptr, from %s",
|
||||
parv[0]);
|
||||
MyFree(bconf);
|
||||
}
|
||||
else
|
||||
{
|
||||
AddListItem(bconf, conf_ban);
|
||||
}
|
||||
AddListItem(bconf, conf_ban);
|
||||
propo_label:
|
||||
if (propo == 1) /* propo is if a ulined server is propagating a z-line
|
||||
this should go after the above check */
|
||||
sendto_serv_butone(cptr, ":%s ZLINE %s :%s", parv[0], parv[1],
|
||||
reason ? reason : "");
|
||||
|
||||
check_pings(TStime(), 1);
|
||||
loop.do_bancheck = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user