/*
* $Id$
* $Log$
+ * Revision 1.6 2001/02/24 15:50:23 priikone
+ * implemented KICK command
+ *
+ * Revision 1.5 2001/02/19 13:47:30 priikone
+ * updates.
+ *
+ * Revision 1.4 2001/02/16 00:33:23 priikone
+ * updates.
+ *
+ * Revision 1.3 2001/02/14 15:31:33 priikone
+ * Do not allow several server connections.
+ *
+ * Revision 1.2 2001/01/30 21:40:21 priikone
+ * updates.
+ *
* Revision 1.1 2000/09/13 17:47:54 priikone
* Created SILC Client Libary by moving stuff from silc/ directory.
* SILC client library is SILC client without UI. Old UI still exists
}
/* Find client entry */
- client_entry = silc_idlist_get_client(client, conn, nickname, server, num);
+ client_entry = silc_idlist_get_client(client, conn, nickname, server, num,
+ TRUE);
if (!client_entry) {
/* Client entry not found, it was requested thus mark this to be
pending command. */
- silc_client_command_pending(SILC_COMMAND_IDENTIFY,
+ silc_client_command_pending(conn, SILC_COMMAND_IDENTIFY, 0, NULL,
silc_client_local_command_msg, context);
return;
}
port = 706;
}
+#if 0
+ if (conn && conn->remote_host) {
+ if (!strcmp(hostname, conn->remote_host) && port == conn->remote_port) {
+ silc_say(client, conn, "You are already connected to that server");
+ goto out;
+ }
+
+ /* Close connection */
+ cmd->client->ops->disconnect(cmd->client, cmd->conn);
+ silc_client_close_connection(cmd->client, cmd->conn->sock);
+ }
+#endif
+
/* Connect asynchronously to not to block user interface */
silc_client_connect_to_server(cmd->client, port, hostname, NULL);