void LocalCommand_macro_help()
{
- FOREACH(CLIENT_COMMANDS, true, LAMBDA(LOG_INFOF(" ^2%s^7: %s\n", it.m_name, it.m_description)));
+ FOREACH(CLIENT_COMMANDS, true, LOG_INFOF(" ^2%s^7: %s\n", it.m_name, it.m_description));
}
bool LocalCommand_macro_command(int argc, string command)
{
string c = strtolower(argv(0));
- FOREACH(CLIENT_COMMANDS, it.m_name == c, LAMBDA(
+ FOREACH(CLIENT_COMMANDS, it.m_name == c, {
it.m_invokecmd(CMD_REQUEST_COMMAND, NULL, argc, command);
return true;
- ));
+ });
return false;
}
bool LocalCommand_macro_usage(int argc)
{
string c = strtolower(argv(1));
- FOREACH(CLIENT_COMMANDS, it.m_name == c, LAMBDA(
+ FOREACH(CLIENT_COMMANDS, it.m_name == c, {
it.m_invokecmd(CMD_REQUEST_USAGE, NULL, argc, "");
return true;
- ));
+ });
return false;
}
void LocalCommand_macro_write_aliases(int fh)
{
- FOREACH(CLIENT_COMMANDS, true, LAMBDA(CMD_Write_Alias("qc_cmd_cl", it.m_name, it.m_description)));
+ FOREACH(CLIENT_COMMANDS, true, CMD_Write_Alias("qc_cmd_cl", it.m_name, it.m_description));
}