+Thu Jan 31 23:34:33 EET 2002 Pekka Riikonen <priikone@silcnet.org>
+
+ * Fixed private message handling. It used some old code that
+ caused the client to crash. Affecte file is
+ lib/silcclient/client_prvmsg.c.
+
Thu Jan 31 19:06:22 EET 2002 Pekka Riikonen <priikone@silcnet.org>
* Added function silc_client_add_channel,
{
SilcClientConnection conn = (SilcClientConnection)sock->user_data;
SilcPrivateMessagePayload payload = NULL;
- SilcIDCacheEntry id_cache = NULL;
SilcClientID *remote_id = NULL;
SilcClientEntry remote_client;
SilcMessageFlags flags;
/* Check whether we know this client already */
remote_client = silc_client_get_client_by_id(client, conn, remote_id);
- if (!remote_client ||
- ((SilcClientEntry)id_cache->context)->nickname == NULL) {
-
+ if (!remote_client || !remote_client->nickname) {
if (remote_client) {
- remote_client = (SilcClientEntry)id_cache->context;
if (remote_client->status & SILC_CLIENT_STATUS_RESOLVING) {
remote_client->status &= ~SILC_CLIENT_STATUS_RESOLVING;
goto out;