Commit c16edf1c authored by stettberger's avatar stettberger

Killed bug with bug killers:

    * Nick parseing of nicks like foo@heise
parent 31d9f608
......@@ -42,7 +42,7 @@
/* {{{ Structs, Globals Declarations */
#define VERSION "0.1"
#define VERSION "0.2"
#define NULL_TEST(a) if(!(a)){perror("si: Couldn't allocate memory"); return;}
#define NULL_TEST_ARG(a,b) if(!(a)){perror("si: Couldn't allocate memory"); return (b);}
......@@ -292,6 +292,13 @@ int Utf8ToLocal (char *from, char **to) {
/* }}} */
static void silc_nickname_format_parse(const char *nickname,
char **ret_nickname)
{
silc_parse_userfqdn(nickname, ret_nickname, NULL);
}
/* {{{ proc_channels_input */
void proc_channels_input(Channel *c, char *buf) {
......@@ -586,7 +593,7 @@ void proc_channels_input(Channel *c, char *buf) {
}
else {
DEBUG("Input: SENT_COMMAND");
DEBUG("Input: SENT_COMMAND: %s", &buf[1]);
silc_client_command_call(silc_client->client, silc_client->conn, &buf[1], NULL);
}
}
......@@ -1075,6 +1082,8 @@ int run(void)
/* ClientParams */
memset(&params, 0, sizeof(params));
strcat(params.nickname_format, "%n@%h%a");
params.nickname_parse = silc_nickname_format_parse;
silc_client->client = silc_client_alloc(&ops, &params, silc_client, NULL);
NULL_TEST_ARG(silc_client->client,1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment