+void Server::sendPerform() {
+ // TODO: reimplement perform List!
+ //// send performlist
+ //QStringList performList = networkSettings["Perform"].toString().split( "\n" );
+ //int count = performList.count();
+ //for(int a = 0; a < count; a++) {
+ // if(!performList[a].isEmpty() ) {
+ // userInput(network, "", performList[a]);
+ // }
+ //}
+
+ // rejoin channels we've been in
+ QStringList chans = _previousState.toStringList();
+ if(chans.count() > 0) {
+ qDebug() << "autojoining" << chans;
+ QString list = chans.join(",");
+ putCmd("join", QStringList(list));
+ }
+ // delete _previousState, we won't need it again
+ _previousState = QVariant();
+}
+
+QVariant Server::state() {
+ IrcUser *me = networkInfo()->ircUser(networkInfo()->myNick());
+ if(!me) return QVariant(); // this shouldn't really happen, I guess
+ return me->channels();
+}
+