Commit d74abc30 authored by Antoine Millet's avatar Antoine Millet
Browse files

Added proxy_client to the client handler.

Allow to proxify a call to a client from the server.
parent 233f0374
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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