# HG changeset patch # User David Demelier # Date 1591985100 -7200 # Node ID 30aa34a87dd656f0ac753c1700459d0dd16484a4 # Parent 5e25439fe98d7839c1460c8a8bcea1335b7b8544 irccd: fix build on macOS diff -r 5e25439fe98d -r 30aa34a87dd6 libirccd-daemon/irccd/daemon/transport_command.cpp --- a/libirccd-daemon/irccd/daemon/transport_command.cpp Mon Feb 03 20:20:00 2020 +0100 +++ b/libirccd-daemon/irccd/daemon/transport_command.cpp Fri Jun 12 20:05:00 2020 +0200 @@ -350,7 +350,7 @@ void rule_add_command::exec(bot& bot, transport_client& client, const document& args) { - const auto index = args.optional("index", bot.get_rules().list().size()); + const auto index = args.optional("index", bot.get_rules().list().size()); if (!index || *index > bot.get_rules().list().size()) throw rule_error(rule_error::error::invalid_index); @@ -381,7 +381,7 @@ } }; - const auto index = args.get("index"); + const auto index = args.get("index"); if (!index) throw rule_error(rule_error::invalid_index); @@ -425,7 +425,7 @@ void rule_info_command::exec(bot& bot, transport_client& client, const document& args) { - const auto index = args.get("index"); + const auto index = args.get("index"); if (!index) throw rule_error(rule_error::invalid_index); @@ -469,8 +469,8 @@ void rule_move_command::exec(bot& bot, transport_client& client, const document& args) { - const auto from = args.get("from"); - const auto to = args.get("to"); + const auto from = args.get("from"); + const auto to = args.get("to"); if (!from || !to) throw rule_error(rule_error::invalid_index); @@ -532,7 +532,7 @@ void rule_remove_command::exec(bot& bot, transport_client& client, const document& args) { - const auto index = args.get("index"); + const auto index = args.get("index"); if (!index || *index >= bot.get_rules().list().size()) throw rule_error(rule_error::invalid_index);