|
@@ -47,7 +47,7 @@ Client::~Client()
|
|
void Client::connect(const char *host, quint16 port)
|
|
void Client::connect(const char *host, quint16 port)
|
|
{
|
|
{
|
|
myJoinMessageScheduled = true; //Hi message only scheduled at bot connection
|
|
myJoinMessageScheduled = true; //Hi message only scheduled at bot connection
|
|
-
|
|
|
|
|
|
+ setPing(13);
|
|
QWClient::connect(host, port);
|
|
QWClient::connect(host, port);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -361,6 +361,8 @@ void Client::onLevelChanged(int, const char *levelName, float, float, float, flo
|
|
myDownloadProgressPrintedFlag = false;
|
|
myDownloadProgressPrintedFlag = false;
|
|
mySpamMutedFlag = false;
|
|
mySpamMutedFlag = false;
|
|
myQWMutedFlag = false;
|
|
myQWMutedFlag = false;
|
|
|
|
+
|
|
|
|
+ setPing(13);
|
|
}
|
|
}
|
|
|
|
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
@@ -420,6 +422,8 @@ void Client::onStuffedCmd(const char *cmd)
|
|
{
|
|
{
|
|
myOnServerFlag = true;
|
|
myOnServerFlag = true;
|
|
|
|
|
|
|
|
+ setPing(Settings::globalInstance()->botPing());
|
|
|
|
+
|
|
/* Only say hi if hi is scheduled */
|
|
/* Only say hi if hi is scheduled */
|
|
if(myJoinMessageScheduled)
|
|
if(myJoinMessageScheduled)
|
|
{
|
|
{
|