Handle command reply lists in threads.
[silc.git] / lib / silcclient / client_channel.c
index bb5c071e4c49eb69e8affdc51c5b8dc2e41fc4ab..51fc85471d11a358d2be3727a237c9bfc60957de 100644 (file)
@@ -202,6 +202,13 @@ SILC_FSM_STATE(silc_client_channel_message)
     return SILC_FSM_CONTINUE;
   }
 
+  /* Check that user is on channel */
+  if (!silc_client_on_channel(channel, client_entry)) {
+    /** User not on channel */
+    silc_fsm_next(fsm, silc_client_channel_message_error);
+    return SILC_FSM_CONTINUE;
+  }
+
   /* If there is no channel private key then just decrypt the message
      with the channel key. If private keys are set then just go through
      all private keys and check what decrypts correctly. */