| Summary: | irc protocol handler creates gratuitous new server connection | ||
|---|---|---|---|
| Product: | [Applications] konversation | Reporter: | Nathaniel W. Turner <nturner-kde> |
| Component: | general | Assignee: | Konversation Bugs <konversation-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Nathaniel W. Turner
2005-01-20 16:33:20 UTC
CVS commit by cartman:
When following irc:/ links don't create unneeded server connections
BUG:97535
M +6 -1 konversationapplication.cpp 1.225
--- kdeextragear-2/konversation/konversation/konversationapplication.cpp #1.224:1.225
@@ -1442,4 +1442,9 @@ void KonversationApplication::dcopConnec
const QString& password)
{
+ Server* server = getServerByName(url);
+
+ if(server)
+ server->sendJoinCommand(channel);
+ else
quickConnectToServer(url, QString::number(port), channel, password);
}
commit 6812a9ec88a7fc7347780449050b39a0ef6aea57 Author: İsmail Dönmez <ismail@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() |