[Konversation-devel] [Bug 97535] irc protocol handler creates gratuitous new server connection

ismail donmez ( cartman ) ismail at kde.org
Thu Jul 1 15:57:52 CEST 2010


https://bugs.kde.org/show_bug.cgi?id=97535





--- Comment #2 from ismail ( cartman ) donmez <ismail kde org>  2010-07-01 15:57:51 ---
commit 6812a9ec88a7fc7347780449050b39a0ef6aea57
Author: İsmail Dönmez <ismail at kde.org>
Date:   Fri Jan 28 20:07:48 2005 +0000

    When following irc:/ links don't create unneeded server connections
    BUG:97535

    svn path=/trunk/kdeextragear-2/konversation/; revision=383395

diff --git a/konversation/konversationapplication.cpp
b/konversation/konversationapplication.cpp
index fa9bf8b..eb2b1d4 100644
--- a/konversation/konversationapplication.cpp
+++ b/konversation/konversationapplication.cpp
@@ -1441,7 +1441,12 @@ void
KonversationApplication::sendMultiServerCommand(const QString& command, con
 void KonversationApplication::dcopConnectToServer(const QString& url, int
port, const QString& channel, 
                           const QString& password)
 {
-  quickConnectToServer(url, QString::number(port), channel, password);
+  Server* server = getServerByName(url);
+
+  if(server)
+    server->sendJoinCommand(channel);
+  else
+    quickConnectToServer(url, QString::number(port), channel, password);
 }

 Konversation::Sound* KonversationApplication::sound()

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Konversation-devel mailing list