(bots) display received/sent message logs only if we are authenticated
This commit is contained in:
parent
565a08b229
commit
56db55caca
@ -56,6 +56,7 @@ namespace ix
|
|||||||
&receivedCountPerSecs,
|
&receivedCountPerSecs,
|
||||||
&receivedCountPerMinutes,
|
&receivedCountPerMinutes,
|
||||||
&minuteCounter,
|
&minuteCounter,
|
||||||
|
&conn,
|
||||||
&stop] {
|
&stop] {
|
||||||
setThreadName("Bot progress");
|
setThreadName("Bot progress");
|
||||||
while (!stop)
|
while (!stop)
|
||||||
@ -74,7 +75,11 @@ namespace ix
|
|||||||
<< sentCountPerSecs
|
<< sentCountPerSecs
|
||||||
<< " "
|
<< " "
|
||||||
<< sentCountTotal;
|
<< sentCountTotal;
|
||||||
CoreLogger::info(ss.str());
|
|
||||||
|
if (conn.isAuthenticated())
|
||||||
|
{
|
||||||
|
CoreLogger::info(ss.str());
|
||||||
|
}
|
||||||
|
|
||||||
receivedCountPerSecs = receivedCount - receivedCountTotal;
|
receivedCountPerSecs = receivedCount - receivedCountTotal;
|
||||||
sentCountPerSecs = sentCount - sentCountTotal;
|
sentCountPerSecs = sentCount - sentCountTotal;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user