diff options
-rw-r--r-- | src/espik_irc.c | 2 | ||||
-rw-r--r-- | src/espik_net.c | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/espik_irc.c b/src/espik_irc.c index 4819a46..6ba01e4 100644 --- a/src/espik_irc.c +++ b/src/espik_irc.c @@ -220,7 +220,7 @@ char* irc_send (char* msg) cmd_and_message = separate_commandline (msg + 1); #if _D_ - printf ("irc_send: <separate_commandline\n"); + printf ("irc_send: <separate_commandline\n"); #endif string_upper (cmd_and_message[0]); diff --git a/src/espik_net.c b/src/espik_net.c index 2708542..14ef5fe 100644 --- a/src/espik_net.c +++ b/src/espik_net.c @@ -8,6 +8,7 @@ #include "espik_common_handler.h" #include "espik_error.h" #include "espik.h" +#include "espik_global.h" #include <unistd.h> #include <stdlib.h> @@ -34,12 +35,15 @@ void espik_con_init (t_info serv_info) void espik_con_shutdown () { - +#ifdef _D_ printf ("> espik_con_shutdown\n"); +#endif ecore_con_server_del (con_sock); ecore_con_shutdown (); +#ifdef _D_ printf ("< espik_con_shutdown\n"); +#endif /* ecore_main_loop_quit (); */ } @@ -54,6 +58,7 @@ void espik_raw_send (char *msg) snprintf (out, len, "%s\r\n", msg); +#ifdef _D_ printf ("espik_raw_send:\nmsg: %s\nout: %s\n", msg, out); /* printf ("out[len-3]: 0x%X\n", out[len - 3]); @@ -63,6 +68,7 @@ void espik_raw_send (char *msg) printf ("ecore_con_server_send: %d\n", ecore_con_server_send (con_sock, out, strlen (out))); +#endif free (out); } |