From c135b3a13fd7c639b208f56414602f40f581ba0c Mon Sep 17 00:00:00 2001 From: beber Date: Tue, 18 Oct 2005 14:28:56 +0000 Subject: del string_upper, use strcasecmp --- src/espik_irc.c | 6 ++++-- src/espik_irc.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/espik_irc.c b/src/espik_irc.c index e5c0bd4..e777b42 100644 --- a/src/espik_irc.c +++ b/src/espik_irc.c @@ -53,6 +53,7 @@ char** separate_commandline (char *msg) return (two_words); } +/* void string_upper (char *str) { unsigned int len, i; @@ -68,6 +69,7 @@ void string_upper (char *str) printf("string_upper: %s\n", str); #endif } +*/ unsigned short sendmsg_len (char* msg) { @@ -223,11 +225,11 @@ char* irc_send (char* msg) printf ("irc_send: cmd_name != 0; cmd++) { - if ((strcmp (cmd_and_message[0], cmd->cmd_name)) == 0) + if ((strcasecmp (cmd_and_message[0], cmd->cmd_name)) == 0) { out = cmd->format (current_chan, cmd_and_message[1]); /* WHy do job after found the good to do ? */ diff --git a/src/espik_irc.h b/src/espik_irc.h index aec1a64..7fa68e2 100644 --- a/src/espik_irc.h +++ b/src/espik_irc.h @@ -13,7 +13,7 @@ char* irc_raw (char*, char*); char* irc_nick(char*, char*); char** separate_commandline (char*); -void string_upper (char*); +/*void string_upper (char*);*/ //Ecore_Con_Server* irc_connect (char*, int); //void irc_disconnect (Ecore_Con_Server*); -- cgit v1.2.3