X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fclient_notify.c;h=82a0654fa9158a125f53a06b4ad0de17a673a8a1;hb=8d1a8bbf644f67f86e7e1b95cf51d6d49406251f;hp=a07991736323e7930e1f33c0657609266cffc75c;hpb=5e5526c98cc281231e020220a3a9c3eaa31df68f;p=silc.git diff --git a/lib/silcclient/client_notify.c b/lib/silcclient/client_notify.c index a0799173..82a0654f 100644 --- a/lib/silcclient/client_notify.c +++ b/lib/silcclient/client_notify.c @@ -2,7 +2,7 @@ client_notify.c - Author: Pekka Riikonen + Author: Pekka Riikonen Copyright (C) 1997 - 2001 Pekka Riikonen @@ -123,7 +123,7 @@ void silc_client_notify_by_server(SilcClient client, /* Get the channel entry */ channel = NULL; if (silc_idcache_find_by_id_one(conn->channel_cache, (void *)channel_id, - &id_cache)) + &id_cache)) channel = (SilcChannelEntry)id_cache->context; /* Get sender Client ID */ @@ -202,9 +202,6 @@ void silc_client_notify_by_server(SilcClient client, silc_list_add(channel->clients, chu); } - /* XXX add support for multiple same nicks on same channel. Check - for them here */ - /* Notify application. The channel entry is sent last as this notify is for channel but application don't know it from the arguments sent by server. */ @@ -366,6 +363,8 @@ void silc_client_notify_by_server(SilcClient client, goto out; silc_free(client_id); + client_entry->valid = FALSE; + /* Get new Client ID */ tmp = silc_argument_get_arg_type(args, 2, &tmp_len); if (!tmp) @@ -767,8 +766,6 @@ void silc_client_notify_by_server(SilcClient client, out: silc_notify_payload_free(payload); - if (client_id) - silc_free(client_id); - if (channel_id) - silc_free(channel_id); + silc_free(client_id); + silc_free(channel_id); }