| 187 | } |
| 188 | |
| 189 | void trydisconnect() |
| 190 | { |
| 191 | if(connpeer) |
| 192 | { |
| 193 | conoutf("aborting connection attempt"); |
| 194 | abortconnect(); |
| 195 | return; |
| 196 | } |
| 197 | if(!curpeer) |
| 198 | { |
| 199 | conoutf("not connected"); |
| 200 | return; |
| 201 | } |
| 202 | conoutf("attempting to disconnect..."); |
| 203 | disconnect(0, !discmillis); |
| 204 | } |
| 205 | COMMANDN(disconnect, trydisconnect, ""); |
| 206 | |
| 207 | // core game function: ingame chat |
no test coverage detected