diff --git a/SGSXLThread.cpp b/SGSXLThread.cpp index 99eaf97..ccdd97d 100644 --- a/SGSXLThread.cpp +++ b/SGSXLThread.cpp @@ -275,11 +275,11 @@ void CSGSXLThread::processIrcDDB() if (!res) break; - if (address.size()) { - //printf("USER: %s %s %s %s\n", user.c_str(), repeater.c_str(), gateway.c_str(), address.c_str()); + if (!address.empty()) { + printf("USER: %s %s %s %s\n", user.c_str(), repeater.c_str(), gateway.c_str(), address.c_str()); m_cache.updateUser(user, repeater, gateway, address, timestamp, DP_DEXTRA, false, false); - //} else { - // printf("USER: %s has no IP address!\n", user.c_str()); + } else { + printf("USER: %s has no IP address!\n", user.c_str()); } } break; @@ -290,11 +290,11 @@ void CSGSXLThread::processIrcDDB() if (!res) break; - if (address.size()) { -// printf("REPEATER: %s %s %s\n", repeater.c_str(), gateway.c_str(), address.c_str()); + if (!address.empty()) { + printf("REPEATER: %s %s %s\n", repeater.c_str(), gateway.c_str(), address.c_str()); m_cache.updateRepeater(repeater, gateway, address, DP_DEXTRA, false, false); -// } else { -// printf("REPEATER: %s NOT FOUND\n", repeater.c_str()); + } else { + printf("REPEATER: %s NOT FOUND\n", repeater.c_str()); } } break; @@ -309,11 +309,11 @@ void CSGSXLThread::processIrcDDB() CDCSHandler::gatewayUpdate(gateway, address); - if (0 == address.size()) { -// printf("GATEWAY: %s %s\n", gateway.c_str(), address.c_str()); + if (!address.empty()) { + printf("GATEWAY: %s %s\n", gateway.c_str(), address.c_str()); m_cache.updateGateway(gateway, address, DP_DEXTRA, false, false); -// } else { -// printf("GATEWAY: %s NOT FOUND\n", gateway.c_str()); + } else { + printf("GATEWAY: %s NOT FOUND\n", gateway.c_str()); } } break;