def create_server(self, server_name, *args, **kwargs):
        """Create an IRC server connection slot.

        The server will actually be connected to when
        :meth:`girc.client.ServerConnection.connect` is called later.

        Args:
            server_name (str): Name of the server, to be used for functions and accessing the
                server later through the reactor.

        Returns:
            server (girc.client.ServerConnection): A not-yet-connected server.
        """
        server = ServerConnection(name=server_name, reactor=self)

        if args or kwargs:
            server.set_connect_info(*args, **kwargs)

        # register cached events
        for verb, infos in self._event_handlers.items():
            for info in infos:
                server.register_event(info['direction'], verb, info['handler'],
                                      priority=info['priority'])

        self.servers[server_name] = server

        return server
def create_server ( self , server_name , * args , ** kwargs ) : server = ServerConnection ( name = server_name , reactor = self ) if args or kwargs : server . set_connect_info ( * args , ** kwargs ) for verb , infos in self . _event_handlers . items ( ) : for info in infos : server . register_event ( info [ 'direction' ] , verb , info [ 'handler' ] , priority = info [ 'priority' ] ) self . servers [ server_name ] = server return server
Create an IRC server connection slot.

        The server will actually be connected to when
        :meth:`girc.client.ServerConnection.connect` is called later.

        Args:
            server_name (str): Name of the server, to be used for functions and accessing the
                server later through the reactor.

        Returns:
            server (girc.client.ServerConnection): A not-yet-connected server.