Use gettimeofday instead of clock_gettime.

POSIX.1-2008 deprecates gettimeofday...
So perhaps it will be changed back in future.

For now gettimeofday is more portable :(
This commit is contained in:
Alexey Sokolov
2012-08-09 00:37:16 +07:00
parent 54f558a4ee
commit d37cb447a0
6 changed files with 21 additions and 22 deletions

View File

@@ -85,6 +85,11 @@ void CClient::ReadLine(const CString& sData) {
DEBUG("(" << GetFullName() << ") CLI -> ZNC [" << sLine << "]");
if (sLine.Left(1) == "@") {
// TODO support message-tags properly
sLine = sLine.Token(1, true);
}
if (IsAttached()) {
NETWORKMODULECALL(OnUserRaw(sLine), m_pUser, m_pNetwork, this, return);
} else {