From: pk910 Date: Sat, 13 Aug 2011 00:43:14 +0000 (+0200) Subject: removed unused variable X-Git-Tag: v5.3~562 X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=e0508fcca091934e7226d1f4722607a69813c20a;p=NeonServV5.git removed unused variable --- diff --git a/modcmd.c b/modcmd.c index 092408e..1f6a541 100644 --- 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; } }