X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.cpp;h=9c41b560f27dd4d592337e75e1250716dfe900cb;hp=8320dc08b216f95ee58ea2f96a9a283a7e4f86bb;hb=70f360989331414e89072122a038d1675b7581b0;hpb=efe20e20080a0c22e1a7b8b84ef622130dbf116e diff --git a/src/core/core.cpp b/src/core/core.cpp index 8320dc08..9c41b560 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -592,6 +592,17 @@ void Core::setupClientSession(QTcpSocket *socket, UserId uid) { sess->addClient(socket); } +void Core::setupInternalClientSession(SignalProxy *proxy) { + UserId uid = 3; // FIXME!!!11 + // Find or create session for validated user + SessionThread *sess; + if(sessions.contains(uid)) + sess = sessions[uid]; + else + sess = createSession(uid); + sess->addClient(proxy); +} + SessionThread *Core::createSession(UserId uid, bool restore) { if(sessions.contains(uid)) { quWarning() << "Calling createSession() when a session for the user already exists!";