aboutsummaryrefslogtreecommitdiff
path: root/src/espik_irc.c
diff options
context:
space:
mode:
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;