Update CMakeLists.txt - play with openssl
[novacoin.git] / src / irc.cpp
index b594529..822b760 100644 (file)
@@ -6,6 +6,7 @@
 #include "irc.h"
 #include "base58.h"
 #include "net.h"
+#include "random.h"
 
 using namespace std;
 
@@ -260,7 +261,7 @@ void ThreadIRCSeed2(void* parg)
         // or if it keeps failing because the nick is already in use.
         if (!fNoListen && GetLocal(addrLocal, &addrIPv4) && nNameRetry<3)
             strMyName = EncodeAddress(GetLocalAddress(&addrConnect));
-        if (strMyName == "")
+        if (strMyName.empty())
             strMyName = strprintf("x%" PRIu64 "", GetRand(1000000000));
 
         Send(hSocket, strprintf("NICK %s\r", strMyName.c_str()).c_str());