~thestr4ng3r/chiaki

ccecc67d74f35b0be41073c2a3ccd237ed955402 — MiniMeOSc 1 year, 2 months ago dcd2e6a
Fix stream command not working for second or later host in configuration
1 files changed, 6 insertions(+), 0 deletions(-)

M gui/src/main.cpp
M gui/src/main.cpp => gui/src/main.cpp +6 -0
@@ 129,15 129,21 @@ int real_main(int argc, char *argv[])
		{
			if(args.length() < 3)
				parser.showHelp(1);

			bool found = false;
			for(const auto &temphost : settings.GetRegisteredHosts())
			{
				if(temphost.GetServerNickname() == args[1])
				{
					found = true;
					morning = temphost.GetRPKey();
					regist_key = temphost.GetRPRegistKey();
					target = temphost.GetTarget();
					break;
				}
			}
			if(!found)
			{
				printf("No configuration found for '%s'\n", args[1].toLocal8Bit().constData());
				return 1;
			}