aboutsummaryrefslogtreecommitdiff
path: root/src/espik_common_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/espik_common_handler.c')
-rw-r--r--src/espik_common_handler.c29
1 files changed, 3 insertions, 26 deletions
diff --git a/src/espik_common_handler.c b/src/espik_common_handler.c
index 118b757..3f3ee2e 100644
--- a/src/espik_common_handler.c
+++ b/src/espik_common_handler.c
@@ -71,7 +71,7 @@ static char* convert_unicode_utf(const wchar_t *punicode)
}
#endif
-
+#if 0
int server_data (void* data __UNUSED__, int ev_type __UNUSED__,
Ecore_Con_Event_Server_Data* ev)
{
@@ -114,11 +114,11 @@ int server_data (void* data __UNUSED__, int ev_type __UNUSED__,
espik_leave();
return (0);
}
+#endif
int kb_get (void* data __UNUSED__, Ecore_Fd_Handler* fd_handler)
{
char* kb;
- char* tmp;
int count;
espik_enter();
@@ -133,13 +133,8 @@ int kb_get (void* data __UNUSED__, Ecore_Fd_Handler* fd_handler)
if (count > 1)
{
del_backslash (kb);
- tmp = irc_send (kb);
- if (tmp)
- {
- espik_raw_send (tmp);
- free (tmp);
- }
+ espik_debug_print ("%s", kb);
}
}
while (count >= 198);
@@ -147,24 +142,6 @@ int kb_get (void* data __UNUSED__, Ecore_Fd_Handler* fd_handler)
if (count == -1)
perror ("read");
- if (count == 0)
- {
- tmp = irc_quit (NULL, "^D pressed");
- espik_debug_print ("tmp: %s", tmp);
- espik_raw_send (tmp);
- espik_debug_print ("AFTER espik_raw_send");
- //espik_raw_send (tmp);
-
- /*
- irc_disconnect();
- */
- espik_con_shutdown ();
-
- free (tmp);
- espik_leave();
- return (0);
- }
-
espik_leave();
return (1);
}