}
// restore away state
- userInputHandler()->handleAway(BufferInfo(), Core::awayMessage(userId(), networkId()));
+ QString awayMsg = Core::awayMessage(userId(), networkId());
+ if(!awayMsg.isEmpty())
+ userInputHandler()->handleAway(BufferInfo(), Core::awayMessage(userId(), networkId()));
// restore old user modes if server default mode is set.
IrcUser *me_ = me();
void CoreNetwork::sendPing() {
if(!gotPong()) {
- disconnectFromIrc(false, QString("No Ping reply in %1 seconds.").arg(_pingTimer.interval() / 1000), true /* withReconnect */);
+ // disconnectFromIrc(false, QString("No Ping reply in %1 seconds.").arg(_pingTimer.interval() / 1000), true /* withReconnect */);
} else {
_gotPong = false;
userInputHandler()->handlePing(BufferInfo(), QString());