+ // now we are initialized
+ setConnectionState(Network::Initialized);
+ network()->setConnected(true);
+ emit connected(networkId());
+}
+
+void NetworkConnection::sendPerform() {
+ BufferInfo statusBuf = Core::bufferInfo(coreSession()->user(), network()->networkId(), BufferInfo::StatusBuffer);
+ // do auto identify
+ if(network()->useAutoIdentify() && !network()->autoIdentifyService().isEmpty() && !network()->autoIdentifyPassword().isEmpty()) {
+ userInputHandler()->handleMsg(statusBuf, QString("%1 IDENTIFY %2").arg(network()->autoIdentifyService(), network()->autoIdentifyPassword()));
+ }
+ // send perform list
+ foreach(QString line, network()->perform()) {
+ if(!line.isEmpty()) userInput(statusBuf, line);
+ }