1
0
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:
luke
2002-05-07 22:34:44 +00:00
parent 5087e07097
commit 3f4fd52cff
3 changed files with 22 additions and 1 deletions
+9
View File
@@ -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
View File
@@ -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;
/*
+12
View File
@@ -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);
}