[Konversation-devel] [Bug 174143] Reconnect fails on password protected channels

Nach NachMS at gmail.com
Tue Nov 4 22:08:15 CET 2008


http://bugs.kde.org/show_bug.cgi?id=174143





--- Comment #7 from Nach <NachMS gmail com>  2008-11-04 22:08:14 ---
And here's the fix:
Index: konversation/src/inputfilter.cpp
===================================================================
--- konversation/src/inputfilter.cpp    (revision 880056)
+++ konversation/src/inputfilter.cpp    (working copy)
@@ -794,10 +794,10 @@
                 QString modesAre;
                 QString message = i18n("Channel modes: ") + modeString;

+                int parameterCount=3;
                 for(unsigned int index=0;index<modeString.length();index++)
                 {
                     QString parameter;
-                    int parameterCount=3;
                     char mode=modeString[index];
                     if(mode!='+')
                     {
-------------------------------------------------------------
parameterCount is supposed to be incremented for each parameter read off the
parameter list, but it was being reset each time in the loop. Moving its
creation to outside the loop fixes all problems.

Please commit this. (and perhaps look into merging the good stuff from my
previous patch regarding the breaking down the JOIN line to <512 chars)


-- 
Configure bugmail: http://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