[Konversation-devel] [Bug 142149] New: [PATCH] Konversation's Watched nicknames fix (actually making it work)

Stanislav Nikolov stanley_87 at mail.ru
Sat Feb 24 17:35:42 CET 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142149         
           Summary: [PATCH] Konversation's Watched nicknames fix (actually
                    making it work)
           Product: konversation
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: konversation-devel kde org
        ReportedBy: stanley_87 mail ru


Version:           1.0.1+ #3201 (using KDE 3.5.6, Gentoo)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.19-suspend2-r2

It always occurred to me that the konversation's Watched nicknames behaviour was a bit buggy. When trying to find the reason I found several obvious bugs (like case-sensitivity in the watched nicknames list), as well as some legacy ones (maybe from the time when konvi used to track nickname changes). With this patch I try to clean up the code a bit and make it actually work. I've tested it for a couple of weeks on my PC and it seems to work. Nevertheless, it may need more testing :)

So, the patch introduces a simple system of tracking online status, relying only on the ISON replies. For this reason a new member of the Server class is introduced, QStringList m_prevISONList, which keeps the previous ISON reply. Then in the notification dispatcher, the new reply is directly compared to the previous and the new offline/online nicks are determined. The patch also introduces a new function setWatchedNickOffline() which is used to handle setting a certain nick offline (duh). As for now, a nick change is treated as a nick getting offline.

Well, that's pretty much the patch, I hope it is useful.

Best wishes,
Stanislav


More information about the Konversation-devel mailing list