projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6140ce1
)
Watcher list checking for resumed clients as well.
author
Pekka Riikonen
<priikone@silcnet.org>
Wed, 25 Feb 2004 21:10:14 +0000
(21:10 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Wed, 25 Feb 2004 21:10:14 +0000
(21:10 +0000)
apps/silcd/packet_receive.c
patch
|
blob
|
history
diff --git
a/apps/silcd/packet_receive.c
b/apps/silcd/packet_receive.c
index 5b6fefc8c84a43275838ded44816b4c2fd56847e..44f26d1653d4517b19c265c22c13ddc0b867dec5 100644
(file)
--- a/
apps/silcd/packet_receive.c
+++ b/
apps/silcd/packet_receive.c
@@
-3829,6
+3829,11
@@
void silc_server_resume_client(SilcServer server,
detached_client->mode &= ~SILC_UMODE_DETACHED;
server->stat.my_detached--;
detached_client->mode &= ~SILC_UMODE_DETACHED;
server->stat.my_detached--;
+ /* Check if anyone is watching this client */
+ if (server->server_type == SILC_ROUTER)
+ silc_server_check_watcher_list(server, detached_client, NULL,
+ SILC_NOTIFY_TYPE_UMODE_CHANGE);
+
/* Send the RESUME_CLIENT packet to our primary router so that others
know this client isn't detached anymore. */
buf = silc_buffer_alloc_size(2 + id_len);
/* Send the RESUME_CLIENT packet to our primary router so that others
know this client isn't detached anymore. */
buf = silc_buffer_alloc_size(2 + id_len);
@@
-4072,6
+4077,11
@@
void silc_server_resume_client(SilcServer server,
detached_client->data.status &= ~SILC_IDLIST_STATUS_LOCAL;
id_cache->expire = 0;
detached_client->data.status &= ~SILC_IDLIST_STATUS_LOCAL;
id_cache->expire = 0;
+ /* Check if anyone is watching this client */
+ if (server->server_type == SILC_ROUTER)
+ silc_server_check_watcher_list(server, detached_client, NULL,
+ SILC_NOTIFY_TYPE_UMODE_CHANGE);
+
silc_schedule_task_del_by_context(server->schedule, detached_client);
/* Get the new owner of the resumed client */
silc_schedule_task_del_by_context(server->schedule, detached_client);
/* Get the new owner of the resumed client */