ignore funcmd's in cmd_commands and disallow channel comprehensive fun commands
[NeonServV5.git] / src / modcmd.c
index 8b9c72c4573ab60000075d2e6a14e20df36861f9..856da055dcf314d4b4b1f5aa1f6d33746098577c 100644 (file)
@@ -153,7 +153,7 @@ 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 && stricmp(cbind->cmd, message) == 0) {
-            if((cbind->flags & CMDFLAG_FUNCMD)) {
+            if((cbind->func->flags & CMDFLAG_FUNCMD)) {
                 if(!sent_chan)
                     break;
                 chan = sent_chan;