No longer sending options if there aren't any and no longer

sending a reset before sending options (the caller can do
that if necessary).
This commit is contained in:
crs 2002-12-23 14:49:14 +00:00
parent 50e9e855b0
commit 1eb2ed2d3f
1 changed files with 1 additions and 2 deletions

View File

@ -1582,7 +1582,7 @@ CServer::sendOptions(IClient* client) const
// look up options for client. we're done if there aren't any. // look up options for client. we're done if there aren't any.
const CConfig::CScreenOptions* options = const CConfig::CScreenOptions* options =
m_config.getOptions(client->getName()); m_config.getOptions(client->getName());
if (options == NULL) { if (options == NULL || options->size() == 0) {
return; return;
} }
@ -1596,7 +1596,6 @@ CServer::sendOptions(IClient* client) const
} }
// send the options // send the options
client->resetOptions();
client->setOptions(optionsList); client->setOptions(optionsList);
} }