X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fclient_entry.c;h=a643597dae9b5c45e5b1d43d2c51ff60f162613a;hb=c93d979c288b14b8ad95dc49eecf3016ba9eb22d;hp=0f04e08401438cff0a70169910534725879f4128;hpb=04ac803952a6926e959aadd66d6dda911831e120;p=silc.git diff --git a/lib/silcclient/client_entry.c b/lib/silcclient/client_entry.c index 0f04e084..a643597d 100644 --- a/lib/silcclient/client_entry.c +++ b/lib/silcclient/client_entry.c @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 2001 - 2006 Pekka Riikonen + Copyright (C) 2001 - 2007 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -730,9 +730,6 @@ SilcClientEntry silc_client_add_client(SilcClient client, } } - /* Format the nickname */ - silc_client_nickname_format(client, conn, client_entry, FALSE); - silc_mutex_lock(conn->internal->lock); /* Add client to cache, the normalized nickname is saved to cache */ @@ -751,6 +748,9 @@ SilcClientEntry silc_client_add_client(SilcClient client, silc_mutex_unlock(conn->internal->lock); silc_client_ref_client(client, conn, client_entry); + /* Format the nickname */ + silc_client_nickname_format(client, conn, client_entry, FALSE); + SILC_LOG_DEBUG(("Added %p", client_entry)); return client_entry;