logical merge
This commit is contained in:
parent
8e9da42790
commit
3a108d435e
@ -45,8 +45,9 @@ void event_privmsg(irc_session_t * session,
|
|||||||
ircmsg(buffer);
|
ircmsg(buffer);
|
||||||
free(buffer);
|
free(buffer);
|
||||||
|
|
||||||
char const * message = params[1];
|
char * message = strdup(params[1]);
|
||||||
ircmsg(message);
|
ircmsg(syntax_highlight(message));
|
||||||
|
free(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
int connect_bot(const char * const server, const short port) {
|
int connect_bot(const char * const server, const short port) {
|
||||||
|
@ -11,7 +11,7 @@ char * port;
|
|||||||
FILE * log_file;
|
FILE * log_file;
|
||||||
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
//#include "syntax.h"
|
#include "syntax.h"
|
||||||
#include "bot.h"
|
#include "bot.h"
|
||||||
|
|
||||||
const char help_message[] =
|
const char help_message[] =
|
||||||
@ -39,6 +39,8 @@ signed main(int argc, char * * argv) {
|
|||||||
|
|
||||||
log_file = stdout;
|
log_file = stdout;
|
||||||
|
|
||||||
|
syntax_c();
|
||||||
|
|
||||||
connect_bot(server, port_i);
|
connect_bot(server, port_i);
|
||||||
connection_loop();
|
connection_loop();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user