aboutsummaryrefslogtreecommitdiff
path: root/src/espik_irc.c
diff options
context:
space:
mode:
authorbeber <beber>2005-10-18 14:28:56 +0000
committerbeber <beber>2005-10-18 14:28:56 +0000
commitc135b3a13fd7c639b208f56414602f40f581ba0c (patch)
treee25f691150836ad9419fe3e5106046b0c52948b9 /src/espik_irc.c
parentlink to local lib (mine) (diff)
downloadespik-c135b3a13fd7c639b208f56414602f40f581ba0c.tar.xz
del string_upper, use strcasecmp
Diffstat (limited to 'src/espik_irc.c')
-rw-r--r--src/espik_irc.c6
1 files changed, 4 insertions, 2 deletions
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: <separate_commandline\n");
#endif
- string_upper (cmd_and_message[0]);
+ /*string_upper (cmd_and_message[0]);*/
for (cmd = cmd_tab; cmd->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 ? */