mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 06:03:13 +02:00
Bug fixes, temp kline fix.
This commit is contained in:
@@ -314,3 +314,12 @@ Fixed m_kick more
|
||||
Made "is a bot.." not bold
|
||||
--Luke
|
||||
===================================
|
||||
|
||||
Fixed a bug with \r\n being mistakenly parsed
|
||||
wrong. Thanks to John_z
|
||||
--Luke
|
||||
===================================
|
||||
|
||||
Added temp patch to m_kline to stop segfault
|
||||
--Luke
|
||||
===================================
|
||||
|
||||
+1
-1
@@ -312,7 +312,7 @@ int dbuf_getmsg(dyn, buf, length)
|
||||
while (length > 0 && dlen > 0)
|
||||
{
|
||||
dlen--;
|
||||
if (*s == '\n' /* || *s == '\r' */ ) /*let stop at \n now .. */
|
||||
if (*s == '\n' || *s == '\r' )
|
||||
{
|
||||
copy = dyn->length - dlen;
|
||||
/*
|
||||
|
||||
@@ -2247,6 +2247,18 @@ int m_kline(cptr, sptr, parc, parv)
|
||||
}
|
||||
|
||||
add_temp_conf(CONF_KILL, uhost, parv[2], name, 0, 0, 1);
|
||||
|
||||
if (find_kill(cptr) || find_kill(sptr))
|
||||
{
|
||||
sendto_failops_whoare_opers("k:line error: mask=%s parsed=%s I tried to kill cptr",
|
||||
mask, userhost);
|
||||
sendto_serv_butone(NULL,
|
||||
":%s GLOBOPS :k:line error: mask=%s parsed=%s I tried to kill cptr",
|
||||
me.name, mask, userhost);
|
||||
flush_connections(me.fd);
|
||||
(void)rehash(&me, &me, 0);
|
||||
return;
|
||||
}
|
||||
check_pings(TStime(), 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user