During an encrypted chat session if you try to send a message that is longer than the RSA modulus length of the target's public key [rsa mod len = (key bits + 8)/7, or the length of the key in bytes] it will silently fail. It just says "message sent, awaiting reply..." forever when in reality no message was ever sent.
For one thing I need to make the encrypted chat window respond to errors properly and inform the user of whats really going on instead of logging it to error and proceeding normally.
For another I need to break down encrypted chat messages into pieces smaller than the target's modulus length and encrypt/decrypt them all separately in order to increase the maximum supported length of an encrypted chat.
This is not a critical bug but it does require a fix.
Actually you are doing it wrong... :D
Just send a session key encrypted store it in the chatroom struct when encrypted and use that to BlowFish the chat message... Really it's faster that way and more simple.