~bcdcpp-team/dcplusplus/bcdcpp

« back to all changes in this revision

Viewing changes to win32/HubFrame.cpp

  • Committer: cologic
  • Date: 2012-09-17 07:58:00 UTC
  • Revision ID: ne5@parsoma.net-20120917075800-l8hof8r50axrlmkv
disallow some usercommands from invoking Lua

Show diffs side-by-side

added added

removed removed

Lines of Context:
1301
1301
        client->getHubIdentity().getParams(ucParams, "hub", false);
1302
1302
 
1303
1303
        if(hubMenu) {
1304
 
                if(!ClientManager::ucExecuteLua(uc.getCommand(), ucParams))
 
1304
                if(!ClientManager::ucExecuteLua(uc, ucParams))
1305
1305
                        client->sendUserCmd(uc, ucParams);
1306
1306
        } else {
1307
1307
                auto sel = selectedUsersImpl();
1308
1308
                for(auto& i: sel) {
1309
1309
                        auto tmp = ucParams;
1310
1310
                        static_cast<UserInfo*>(i)->getIdentity().getParams(tmp, "user", true);
1311
 
                        if(!ClientManager::ucExecuteLua(uc.getCommand(), tmp))
 
1311
                        if(!ClientManager::ucExecuteLua(uc, tmp))
1312
1312
                                client->sendUserCmd(uc, tmp);
1313
1313
                }
1314
1314
        }