mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-07-06 04:52:09 -07:00
Fix stream command not working for second or later host in configuration
This commit is contained in:
parent
dcd2e6af4a
commit
ccecc67d74
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue