updates.
[silc.git] / apps / silcd / packet_receive.c
index 0b7b0bfd98f33fedc931e1d1ef31140585a94b57..8e50b85741a76a2460185a7ceceef98083ffae33 100644 (file)
@@ -1766,6 +1766,9 @@ void silc_server_new_channel(SilcServer server,
         We also create a new key for the channel. */
       SilcBuffer users = NULL;
 
+      if (!channel->id)
+       channel_id = silc_id_dup(channel_id, SILC_ID_CHANNEL);
+
       if (SILC_ID_CHANNEL_COMPARE(channel_id, channel->id)) {
        /* They don't match, send CHANNEL_CHANGE notify to the server to
           force the ID change. */