History

add a kick request packet and send from NL

Stephen Birarda committed 10 years ago

Commit 7e6dbf21 parent 94b97e86 files · +37 −3Browse files

Showing the changes to libraries/script-engine/src/UsersScriptingInterface.cpp (1 of 6 files). Show all

Unified · Split

libraries/script-engine/src/UsersScriptingInterface.cpp+5−0
@@ -17,3 +17,8 @@ void UsersScriptingInterface::ignore(const QUuid& nodeID) { · 16 unmodified lines
1717 // ask the NodeList to ignore this user (based on the session ID of their node)
1818 DependencyManager::get<NodeList>()->ignoreNodeBySessionID(nodeID);
1919 }
20+
21+void UsersScriptingInterface::kick(const QUuid& nodeID) {
22+ // ask the NodeList to kick the user with the given session ID
23+ DependencyManager::get<NodeList>()->kickNodeBySessionID(nodeID);
24+}