Menu-FN: Check TCP_GetState() before allowing a message to be sent to chatrooms.
This commit is contained in:
parent
5e181c1128
commit
e1df585677
1 changed files with 3 additions and 0 deletions
|
@ -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]),
|
||||
|
|
Loading…
Reference in a new issue