logical merge

This commit is contained in:
anon 2023-12-16 00:27:56 +01:00
parent 8e9da42790
commit 3a108d435e
2 changed files with 6 additions and 3 deletions

View File

@ -45,8 +45,9 @@ void event_privmsg(irc_session_t * session,
ircmsg(buffer);
free(buffer);
char const * message = params[1];
ircmsg(message);
char * message = strdup(params[1]);
ircmsg(syntax_highlight(message));
free(message);
}
int connect_bot(const char * const server, const short port) {

View File

@ -11,7 +11,7 @@ char * port;
FILE * log_file;
#include "log.h"
//#include "syntax.h"
#include "syntax.h"
#include "bot.h"
const char help_message[] =
@ -39,6 +39,8 @@ signed main(int argc, char * * argv) {
log_file = stdout;
syntax_c();
connect_bot(server, port_i);
connection_loop();