: BasicHandler(parent),
_whois(false)
{
+ connect(parent, SIGNAL(disconnected(NetworkId)), this, SLOT(destroyNetsplits()));
}
IrcServerHandler::~IrcServerHandler() {
- if(!_netsplits.empty())
- qDeleteAll(_netsplits);
+ destroyNetsplits();
}
/*! Handle a raw message string sent by the server. We try to find a suitable handler, otherwise we call a default handler. */
}
}
+void IrcServerHandler::destroyNetsplits() {
+ qDebug() << "destroyNetsplits()";
+ qDeleteAll(_netsplits);
+ _netsplits.clear();
+}
/***********************************************************************************/
void handleEarlyNetsplitJoin(const QString &channel, const QStringList &users, const QStringList &modes);
+ //! Destroy any existing netsplits
+ /** This slot deletes all netsplit objects
+ * Used to get rid of existing netsplits on network reconnect
+ */
+ void destroyNetsplits();
+
private:
void tryNextNick(const QString &errnick, bool erroneus = false);
bool checkParamCount(const QString &methodName, const QList<QByteArray> ¶ms, int minParams);