/* Produce the key material */
keymat = silc_ske_process_key_material_data(key, key_len, 16, 256, 16,
- client->sha1hash);
+ conn->internal->sha1hash);
if (!keymat)
return FALSE;
return NULL;
}
-/* Adds client to channel */
+/* Adds client to channel. Returns TRUE if user was added or is already
+ added to the channel, FALSE on error. */
SilcBool silc_client_add_to_channel(SilcChannelEntry channel,
SilcClientEntry client_entry,
SilcChannelUser chu;
if (silc_client_on_channel(channel, client_entry))
- return FALSE;
+ return TRUE;
chu = silc_calloc(1, sizeof(*chu));
if (!chu)