updates.
[silc.git] / apps / silcd / packet_send.c
index 4b271c4d9cc5c94e84b04063c3352e3c18cfa342..714479ea6a5f6ff9291d31ffeb26e54def37bd5a 100644 (file)
@@ -947,7 +947,8 @@ void silc_server_send_notify_cmode(SilcServer server,
                                   SilcChannelEntry channel,
                                   unsigned int mode_mask,
                                   SilcClientID *client_id,
-                                  unsigned int client_id_len)
+                                  unsigned int client_id_len,
+                                  char *cipher, char *hmac)
 {
   SilcBuffer idp;
   unsigned char mode[4];
@@ -957,8 +958,10 @@ void silc_server_send_notify_cmode(SilcServer server,
 
   silc_server_send_notify_dest(server, sock, broadcast, (void *)channel->id,
                               SILC_ID_CHANNEL, SILC_NOTIFY_TYPE_CMODE_CHANGE,
-                              2, idp->data, idp->len,
-                              mode, 4);
+                              4, idp->data, idp->len,
+                              mode, 4,
+                              cipher, cipher ? strlen(cipher) : 0,
+                              hmac, hmac ? strlen(hmac) : 0);
   silc_buffer_free(idp);
 }