- Rewrite IRC code with {fmt}

- Fixed bug where irc_send_cmd() may write past end of buffer
- Break RPL_NAMREPLY into multiple packets if message cannot fit in one packet
This commit is contained in:
relesgoe 2020-09-19 18:12:46 -07:00
parent 6e95caa6d6
commit 9fa737df00
2 changed files with 1152 additions and 769 deletions
src/bnetd

File diff suppressed because it is too large Load diff

View file

@ -34,8 +34,7 @@ namespace pvpgn
namespace bnetd
{
extern int irc_send_cmd(t_connection * conn, char const * command, char const * params);
extern int irc_send(t_connection * conn, int code, char const * params);
extern int irc_send(t_connection * conn, int numeric, char const * params);
extern int irc_send_ping(t_connection * conn);
extern int irc_send_pong(t_connection * conn, char const * params);
extern int irc_authenticate(t_connection * conn, char const * passhash);