aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbeber <beber>2005-10-12 12:43:46 +0000
committerbeber <beber>2005-10-12 12:43:46 +0000
commitb832c97297a460c2d2e9f946d3cf236db3b81704 (patch)
tree023ebe5faf8f205308c7ae11fa7e1b8f86c96d39 /src
parentDebug (diff)
downloadespik-b832c97297a460c2d2e9f946d3cf236db3b81704.tar.xz
debug
Diffstat (limited to 'src')
-rw-r--r--src/espik_irc.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/espik_irc.c b/src/espik_irc.c
index 491b94b..4819a46 100644
--- a/src/espik_irc.c
+++ b/src/espik_irc.c
@@ -64,7 +64,9 @@ void string_upper (char *str)
if (str[i] >= 0x61 && str[i] <= 0x7A)
str[i] -= 0x20;
}
+#ifdef _D_
printf("string_upper: %s\n", str);
+#endif
}
unsigned short sendmsg_len (char* msg)
@@ -153,7 +155,9 @@ char* irc_quit (char* chan __UNUSED__, char* msg)
snprintf (out.buf, out.len, "QUIT :%s", msg);
+#ifdef _D_
printf ("msg : %s\nout: %s\n", msg, out.buf);
+#endif
/*
espik_raw_send (out);
@@ -179,26 +183,26 @@ char* irc_nick (char* chan __UNUSED__, char* nick)
snprintf (out.buf, out.len, "NICK %s", nick);
+#ifdef _D_
printf ("NICK CHANGED REQUEST: %s\n", nick);
+#endif
return (out.buf);
}
-/*
+#if 0
Ecore_Con_Server* irc_connect (char* host __UNUSED__, int port __UNUSED__)
{
return (NULL);
}
-*/
-/*
void irc_disconnect (Ecore_Con_Server *sock)
{
printf ("> irc_disconnect\n");
ecore_main_loop_quit ();
printf ("< irc_disconnect\n");
}
-*/
+#endif
char* irc_send (char* msg)
{
@@ -215,9 +219,9 @@ char* irc_send (char* msg)
cmd_and_message = separate_commandline (msg + 1);
- #if _D_
+#if _D_
printf ("irc_send: <separate_commandline\n");
- #endif
+#endif
string_upper (cmd_and_message[0]);