Menu-FN: Check TCP_GetState() before allowing a message to be sent to chatrooms.

This commit is contained in:
Marco Cawthorne 2021-02-17 13:28:26 +01:00
parent 5e181c1128
commit e1df585677
1 changed files with 3 additions and 0 deletions

View File

@ -257,6 +257,9 @@ cr_input_enter(string text)
if (!text)
return;
if (!g_ircroom.m_iStatus || TCP_GetState(&tcp_irc) != STATE_CONNECTED)
return;
cr_print(
sprintf("%s<%s>%s %s",
Colors_RGB255_to_HEX([128,100,0]),