aboutsummaryrefslogtreecommitdiff
path: root/src/espik_irc.c
diff options
context:
space:
mode:
authorbeber <beber>2005-10-08 23:25:19 +0000
committerbeber <beber>2005-10-08 23:25:19 +0000
commit4549ef5dc8fb73f44121b5d8b943e92a94b2c026 (patch)
tree26e64a9b560cf78ea59a0406b2dcac1f96c2976b /src/espik_irc.c
parentAdd a file to get serveur error response (diff)
downloadespik-4549ef5dc8fb73f44121b5d8b943e92a94b2c026.tar.xz
Reply to PING
Diffstat (limited to 'src/espik_irc.c')
-rw-r--r--src/espik_irc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/espik_irc.c b/src/espik_irc.c
index c049694..83412dc 100644
--- a/src/espik_irc.c
+++ b/src/espik_irc.c
@@ -207,17 +207,25 @@ char* irc_send (char* msg)
if (msg[0] == '/')
{
+ #if 1
+ printf ("irc_send: msg[0] == '/'\n");
+ #endif
char** cmd_and_message;
cmd_t* cmd;
cmd_and_message = separate_commandline (msg + 1);
+
+ #if 1
+ printf ("irc_send: <separate_commandline\n");
+ #endif
+
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)
- {
+ {
out = cmd->format (current_chan, cmd_and_message[1]);
/* WHy do job after found the good to do ? */
break;