memset(file, 0, sizeof(file));
/* Get remote host information */
- silc_socket_stream_get_info(conn->stream, NULL, &hostname, &ip, &port);
+ silc_socket_stream_get_info(silc_packet_stream_get_stream(conn->stream),
+ NULL, &hostname, &ip, &port);
if (conn_type == SILC_CONN_SERVER ||
conn_type == SILC_CONN_ROUTER) {
silc_client_request_authentication_method(client, conn,
silc_get_auth_method_callback,
internal);
+#else
+ completion(TRUE, SILC_AUTH_NONE, NULL, 0, context);
#endif
}
// command_bind_silc("key", MODULE_NAME, (SIGNAL_FUNC) command_key);
// command_bind("listkeys", MODULE_NAME, (SIGNAL_FUNC) command_listkeys);
- command_set_options("listkeys", "clients servers");
+ //command_set_options("listkeys", "clients servers");
command_set_options("action", "sign channel");
command_set_options("notice", "sign channel");
SILC_SERVER_REC *server = context;
char *file;
- if (!server->disconnected) {
+ if (server->disconnected) {
silc_client_close_connection(client, conn);
return;
}
/* We have successfully connected to server */
/* Enable queueing until we have our requested nick */
+#if 0
if (settings_get_str("nick") &&
!strcmp(conn->local_entry->nickname, conn->local_entry->username))
silc_queue_enable(conn);
+#endif
/* Put default attributes */
silc_query_attributes_default(silc_client, conn);
return;
}
- if (!server->disconnected) {
+ if (server->disconnected) {
silc_stream_destroy(stream);
return;
}