Commit d74abc30 authored by Antoine Millet's avatar Antoine Millet

Added proxy_client to the client handler.

Allow to proxify a call to a client from the server.
parent 233f0374
......@@ -208,6 +208,10 @@ class ClientHandler(OnlineCCHandler):
'''
self._server.conf.remove_account(login)
@pure
def proxy_client(self, login, command, *args, **kwargs):
client = self._server.get_connection(login)
return client.connection.call(command, *args, **kwargs)
class AuthenticationError(Exception):
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment