Merge branch 'player' of git.macaw.me:Macaw/radio into player

This commit is contained in:
Blue 2018-10-29 00:43:17 +03:00 committed by blue
commit 2d2ad3085f

View File

@ -263,6 +263,7 @@ void Corax::onNodeConnected(const W::String& name)
cout << "connected node " << name.toString() << endl;
if (name == u"Perturabo") {
commands->enableCommand(W::String(u"parseDirectory"), true);
commands->enableCommand(W::String(u"givePlayer"), true);
}
}
@ -271,6 +272,7 @@ void Corax::onNodeDisconnected(const W::String& name)
cout << "disconnected node " << name.toString() << endl;
if (name == u"Perturabo") {
commands->enableCommand(W::String(u"parseDirectory"), false);
commands->enableCommand(W::String(u"givePlayer"), false);
}
}