is KILLED, SERVER_SIGNOFF or SIGNOFF. Affected file is
lib/silcclient/client_notify.c.
+ * Check the watcher list before and after changing nickname
+ when the NICK_CHANGE notify is received. Affected file is
+ silcd/idlist.c.
+
Wed May 15 19:01:42 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
* Merged with Irssi CVS for Irssi SILC client.
if (!silc_idcache_del_by_context(id_list->clients, client))
return NULL;
- /* Check if anyone is watching this nickname */
+ /* Check if anyone is watching old nickname */
if (server->server_type == SILC_ROUTER)
silc_server_check_watcher_list(server, client, nickname,
SILC_NOTIFY_TYPE_NICK_CHANGE);
client->id = new_id;
client->nickname = nickname ? strdup(nickname) : NULL;
+ /* Check if anyone is watching new nickname */
+ if (server->server_type == SILC_ROUTER)
+ silc_server_check_watcher_list(server, client, nickname,
+ SILC_NOTIFY_TYPE_NICK_CHANGE);
+
if (!silc_idcache_add(id_list->clients, client->nickname, client->id,
client, 0, NULL))
return NULL;