liquid update

This commit is contained in:
Mark 2004-03-04 19:46:53 +00:00
parent 0f9995558a
commit 4e64bc7883
3 changed files with 14 additions and 2 deletions

View file

@ -79,6 +79,7 @@ NeoStats ChangeLog - Anything we add/remove/fix/change is in here (even our rant
- Add Unreal EOS support for server synchs (M)
- Add Berkeley support for statserv (M)
- Add basic support for module side auth to use within SecureServ (M)
- Fix for bug 117 (Buffer overflow) (M)
* NeoStats * Fish (F) * Version 2.5.14
- Fix a bug with HostServ unable to load the database

View file

@ -131,7 +131,11 @@ int ircvsnprintf(char *buf, size_t size, const char *fmt, va_list args)
}
}
/* NULL terminate */
buf[len] = 0;
if(len < size) {
buf[len] = 0;
} else {
buf[size -1] = 0;
}
/* return count chars written */
return len;
#endif

View file

@ -295,16 +295,23 @@ send_invite (const char *from, const char *to, const char *chan)
void
send_akill (const char *sender, const char *host, const char *ident, const char *setby, const int length, const char *reason, const unsigned long ts)
{
#if 0
send_cmd (":%s %s %s %s %d %s %lu :%s", sender, MSG_AKILL, host, ident, length, setby, ts, reason);
#else
send_cmd (":%s %s add %s@%s %d %d %s :%s", me.name, MSG_GLINE, ident, host, length, (int)me.now, setby, reason);
#endif
}
void
send_rakill (const char *sender, const char *host, const char *ident)
{
#if 0
send_cmd (":%s %s %s %s", sender, MSG_RAKILL, host, ident);
#else
send_cmd (":%s %s del %s@%s", me.name, MSG_GLINE, ident, host);
#endif
}
void
send_svinfo (const int tscurrent, const int tsmin, const unsigned long tsnow)
{