[prev in list] [next in list] [prev in thread] [next in thread]
List: silc-devel
Subject: nick formatting question
From: Juraj Bednar <juraj () bednar ! sk>
Date: 2002-12-05 5:09:01
Message-ID: 20021205050852.B22800 () bednar ! sk
[Download RAW message or body]
Hello,
I'm using silc toolkit to write some applications. I have question
about formating a nick. I get a SilcClientEntry and I want to perform
some operation, such as setting his operator channel flag. I thought of
silc_client_command_* calls, but they want a nickname, not a
SilcClientEntry. There is no problem for me to put there
sender->nickname, but the problem is, when there are more users with
the same nick on the channel. As the library parses the nickname with
this part of code:
if (client->internal->params->nickname_parse)
client->internal->params->nickname_parse(cmd->argv[3], &nickname);
else
nickname = strdup(cmd->argv[3]);
/* Find client entry */
client_entry = silc_idlist_get_client(cmd->client, conn, nickname,
cmd->argv[3], TRUE);
...
I thought of using silc_client_nickname_format, but it's not documented and:
/* Prototypes. These are used only by the library. Application should not
call these directly. */
So my question is what is the cleanest way to do this? Encode the
payload directly in the application and send it? It can change much
more frequently then the original command, so using the silcclient
interface seems a better way to do it for me, but the stringencoding
and then decoding it in the library makes little sense to me. Or is
there even a cleaner way I haven't found yet?
Thanks,
Juraj.
["smime.p7s" (application/x-pkcs7-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic