removed unused variable
authorpk910 <philipp@zoelle1.de>
Sat, 13 Aug 2011 00:43:14 +0000 (02:43 +0200)
committerpk910 <philipp@zoelle1.de>
Sat, 13 Aug 2011 00:43:14 +0000 (02:43 +0200)
modcmd.c

index 092408e47c634069fa7eae076006d8cc5fb9098f..1f6a5415cc8c366c97d9f131aabf421a3d1cb29e 100644 (file)
--- a/modcmd.c
+++ b/modcmd.c
@@ -81,7 +81,6 @@ static void handle_command(struct ClientSocket *client, struct UserNode *user, s
     struct cmd_binding *cbind;
     for(cbind = cmd_binds[bind_index]; cbind; cbind = cbind->next) {
         if(cbind->botid == client->botid && strcmp(cbind->cmd, message) == 0) {
-            struct cmd_function *cmdfunc = cbind->func;
             //parse the arguments...
             char *arga[MAXNUMPARAMS];
             char **argv;
@@ -105,7 +104,7 @@ static void handle_command(struct ClientSocket *client, struct UserNode *user, s
                     chan = chan2;
                 }
             }
-            cmdfunc->func(client, user, chan, argv, argc);
+            cbind->func->func(client, user, chan, argv, argc);
             return;
         }
     }