From: Jochen Eisinger Date: Tue, 8 Aug 2006 18:33:43 +0000 (+0000) Subject: Tue Aug 8 20:32:13 CEST 2006 Jochen Eisinger X-Git-Tag: silc.client.1.0.4~10 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=f5ee83de4361c3e61ed6ed2437fcd5dcd002cf42;p=silc.git Tue Aug 8 20:32:13 CEST 2006 Jochen Eisinger * Always issue a NICK command on connection (if a nickname was given at all). Affected file lib/silcclient/client.c --- diff --git a/CHANGES b/CHANGES index 408b8b5e..d754233a 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ +Tue Aug 8 20:32:13 CEST 2006 Jochen Eisinger + + * Always issue a NICK command on connection (if a nickname was + given at all). Affected file lib/silcclient/client.c + Sun Jul 2 19:12:36 CEST 2006 Jochen Eisinger * Make gmake the default for autodist, so I can properly work diff --git a/lib/silcclient/client.c b/lib/silcclient/client.c index 61191981..e3a0e58d 100644 --- a/lib/silcclient/client.c +++ b/lib/silcclient/client.c @@ -1805,10 +1805,9 @@ void silc_client_receive_new_id(SilcClient client, silc_buffer_free(sidp); if (!conn->internal->params.detach_data) { - /* Send NICK command if the nickname was set by the application (and is - not same as the username). Send this with little timeout. */ - if (client->nickname && - !silc_utf8_strcasecmp(client->nickname, client->username)) + /* Send NICK command if the nickname was set by the application. + Send this with little timeout. */ + if (client->nickname) silc_schedule_task_add(client->schedule, 0, silc_client_send_auto_nick, conn, 1, 0, SILC_TASK_TIMEOUT, SILC_TASK_PRI_NORMAL);