From: Pekka Riikonen Date: Wed, 12 Dec 2001 19:01:04 +0000 (+0000) Subject: updates. X-Git-Tag: 1.2.beta1~1752 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=2bde404c8c0498aae2b6f7ec68061abaf4ba5592;p=crypto.git updates. --- diff --git a/CHANGES b/CHANGES index 571b89e4..5abf16fa 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,9 @@ +Mon Dec 10 19:57:40 EET 2001 Pekka Riikonen + + * If first character of string in silc_parse_userfqdn is '@' + then do not parse it. Affected file is + lib/silcutil/silcutil.c. + Sun Dec 9 22:18:50 EET 2001 Pekka Riikonen * Fixed minor bug in IDENTIFY command reply sending, which diff --git a/lib/LIBINDEX b/lib/LIBINDEX index 4a5f7cd0..565a0c5c 100644 --- a/lib/LIBINDEX +++ b/lib/LIBINDEX @@ -6,7 +6,7 @@ SILC Toolkit Reference Manual
Copyright (C) GNU GPL 2001 The SILC Project
-Version: 0.7
+Version: 0.7.1
Updated: @DATE@

Note that this document is still under work and does not diff --git a/lib/silcclient/command_reply.c b/lib/silcclient/command_reply.c index f66c19dd..5fee4e82 100644 --- a/lib/silcclient/command_reply.c +++ b/lib/silcclient/command_reply.c @@ -617,8 +617,10 @@ SILC_CLIENT_CMD_REPLY_FUNC(nick) argc = silc_argument_get_arg_num(cmd->args); if (argc < 2 || argc > 2) { - cmd->client->internal->ops->say(cmd->client, conn, SILC_CLIENT_MESSAGE_ERROR, - "Cannot set nickname: bad reply to command"); + cmd->client->internal->ops->say( + cmd->client, + conn, SILC_CLIENT_MESSAGE_ERROR, + "Cannot set nickname: bad reply to command"); COMMAND_REPLY_ERROR; goto out; } diff --git a/lib/silcutil/silcutil.c b/lib/silcutil/silcutil.c index 15ad5eab..6b5a36ce 100644 --- a/lib/silcutil/silcutil.c +++ b/lib/silcutil/silcutil.c @@ -417,6 +417,12 @@ bool silc_parse_userfqdn(const char *string, char **left, char **right) if (!string) return FALSE; + if (string[0] == '@') { + if (left) + *left = strdup(string); + return TRUE; + } + if (strchr(string, '@')) { tlen = strcspn(string, "@");