projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates.
[silc.git]
/
lib
/
silcclient
/
client_notify.c
diff --git
a/lib/silcclient/client_notify.c
b/lib/silcclient/client_notify.c
index a07991736323e7930e1f33c0657609266cffc75c..82a0654fa9158a125f53a06b4ad0de17a673a8a1 100644
(file)
--- a/
lib/silcclient/client_notify.c
+++ b/
lib/silcclient/client_notify.c
@@
-2,7
+2,7
@@
client_notify.c
client_notify.c
- Author: Pekka Riikonen <priikone@
poseidon.pspt.fi
>
+ Author: Pekka Riikonen <priikone@
silcnet.org
>
Copyright (C) 1997 - 2001 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,
/* 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 */
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);
}
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. */
/* 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);
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)
/* 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);
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);
}
}