mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
irc: #bitcoin is overflowing. split up into 100 randomly-joined channels.
From laszlo
This commit is contained in:
parent
69ae372b51
commit
69a27a4ec6
11
src/irc.cpp
11
src/irc.cpp
@ -340,8 +340,15 @@ void ThreadIRCSeed2(void* parg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Send(hSocket, fTestNet ? "JOIN #bitcoinTEST\r" : "JOIN #bitcoin\r");
|
if (fTestNet) {
|
||||||
Send(hSocket, fTestNet ? "WHO #bitcoinTEST\r" : "WHO #bitcoin\r");
|
Send(hSocket, "JOIN #bitcoinTEST\r");
|
||||||
|
Send(hSocket, "WHO #bitcoinTEST\r");
|
||||||
|
} else {
|
||||||
|
// randomly join #bitcoin00-#bitcoin99
|
||||||
|
int channel_number = GetRandInt(100);
|
||||||
|
Send(hSocket, strprintf("JOIN #bitcoin%02d\r", channel_number).c_str());
|
||||||
|
Send(hSocket, strprintf("WHO #bitcoin%02d\r", channel_number).c_str());
|
||||||
|
}
|
||||||
|
|
||||||
int64 nStart = GetTime();
|
int64 nStart = GetTime();
|
||||||
string strLine;
|
string strLine;
|
||||||
|
Loading…
Reference in New Issue
Block a user