rpms/centerim/FC-6 centerim-4.22.1-icqack.patch, NONE, 1.1 centerim-4.22.1-msn-NOT.patch, NONE, 1.1 centerim.spec, 1.1, 1.2

Lubomir Kundrak (lkundrak) fedora-extras-commits at redhat.com
Wed Nov 28 13:33:58 UTC 2007


Author: lkundrak

Update of /cvs/pkgs/rpms/centerim/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19672/FC-6

Modified Files:
	centerim.spec 
Added Files:
	centerim-4.22.1-icqack.patch centerim-4.22.1-msn-NOT.patch 
Log Message:
Add ICQ and MSN fixes


centerim-4.22.1-icqack.patch:

--- NEW FILE centerim-4.22.1-icqack.patch ---
From: Roger <roger at jikos.cz>
Date: Sun, 25 Nov 2007 18:18:07 +0000 (+0100)
Subject: Bug #39: Ack SBL to get status notifications
X-Git-Url: http://repo.or.cz/w/centerim.git?a=commitdiff_plain;h=152235ac92c0c1c9a26ccb05e43c423b4ed64783

Bug #39: Ack SBL to get status notifications
---

diff --git a/libicq2000/src/Client.cpp b/libicq2000/src/Client.cpp
index 3bb4d36..8e453c8 100644
--- a/libicq2000/src/Client.cpp
+++ b/libicq2000/src/Client.cpp
@@ -1524,7 +1524,7 @@ namespace ICQ2000
 	SignalLog(LogEvent::INFO, "Received server-based list from server\n");
 	SBLListSNAC *sbs = static_cast<SBLListSNAC*>(snac);
 	mergeSBL( sbs->getContactTree() );
-//        SendSBLReceivedACK();
+        SendSBLReceivedACK();
 	break;
       }
       

centerim-4.22.1-msn-NOT.patch:

--- NEW FILE centerim-4.22.1-msn-NOT.patch ---
From: Stéphane Bisinger <stephane.bisinger at gmail.com>
Date: Mon, 22 Oct 2007 10:13:27 +0000 (+0200)
Subject: Ignored NOT messages by notification Server in libmsn
X-Git-Url: http://repo.or.cz/w/centerim.git?a=commitdiff_plain;h=d39011362c9acd044bcecebc237452448cb6af6e

Ignored NOT messages by notification Server in libmsn
---

diff --git a/libmsn/msn/notificationserver.cpp b/libmsn/msn/notificationserver.cpp
index 3104f8f..8feb245 100644
--- a/libmsn/msn/notificationserver.cpp
+++ b/libmsn/msn/notificationserver.cpp
@@ -152,6 +152,7 @@ namespace MSN
             commandHandlers["CHL"] = &NotificationServerConnection::handle_CHL;
             commandHandlers["ILN"] = &NotificationServerConnection::handle_ILN;
             commandHandlers["NLN"] = &NotificationServerConnection::handle_NLN;
+            commandHandlers["NOT"] = &NotificationServerConnection::handle_NOT;
             commandHandlers["FLN"] = &NotificationServerConnection::handle_FLN;
             commandHandlers["MSG"] = &NotificationServerConnection::handle_MSG;
             commandHandlers["ADG"] = &NotificationServerConnection::handle_ADG;
@@ -282,6 +283,13 @@ namespace MSN
         this->myNotificationServer()->externalCallbacks.buddyChangedStatus(this, args[2], decodeURL(args[3]), buddyStatusFromString(args[1]));
     }
     
+    void NotificationServerConnection::handle_NOT(std::vector<std::string> & args)
+    {
+        this->assertConnectionStateIsAtLeast(NS_CONNECTED);
+        int notlen = decimalFromString(args[1]);
+        this->readBuffer = this->readBuffer.substr(notlen);
+    }
+    
     void NotificationServerConnection::handle_FLN(std::vector<std::string> & args)
     {
         this->assertConnectionStateIsAtLeast(NS_CONNECTED);
@@ -570,10 +578,12 @@ public:
                 else
                     dataLength = decimalFromString(args[1]);
 
-                if (this->readBuffer.find("\r\n") + 2 + dataLength > this->readBuffer.size())
+                if (this->readBuffer.find("\r\n", 0) + 2 + dataLength > this->readBuffer.size()) {
+                    this->myNotificationServer()->externalCallbacks.showError(this, "Could not read buffer: too small");
                     return;
+                }
             }
-            this->readBuffer = this->readBuffer.substr(this->readBuffer.find("\r\n") + 2);
+            this->readBuffer = this->readBuffer.substr(this->readBuffer.find("\r\n", 0) + 2);
             int trid = 0;
             
             if (args.size() >= 6 && args[0] == "XFR" && args[2] == "NS")
@@ -602,7 +612,7 @@ public:
                 // QNG
                 //  0
                 
-		this->_nextPing = decimalFromString(args[1]);
+                this->_nextPing = decimalFromString(args[1]);
                 return;
             }
             
diff --git a/libmsn/msn/notificationserver.h b/libmsn/msn/notificationserver.h
index 5fba4ea..b7f3c5a 100644
--- a/libmsn/msn/notificationserver.h
+++ b/libmsn/msn/notificationserver.h
@@ -285,13 +285,13 @@ public:
         };
 
         NotificationServerState connectionState() const { return this->_connectionState; };
-	unsigned int nextPing() { return this->_nextPing; };
+        unsigned int nextPing() { return this->_nextPing; };
         Callbacks & externalCallbacks;
         virtual NotificationServerConnection *myNotificationServer() { return this; };        
 protected:
         virtual void handleIncomingData();
         NotificationServerState _connectionState;
-	unsigned int _nextPing;
+        unsigned int _nextPing;
         
         void setConnectionState(NotificationServerState s) { this->_connectionState = s; };
         void assertConnectionStateIs(NotificationServerState s) { assert(this->_connectionState == s); };
@@ -315,6 +315,7 @@ private:
         void handle_CHL(std::vector<std::string> & args);
         void handle_ILN(std::vector<std::string> & args);
         void handle_NLN(std::vector<std::string> & args);
+        void handle_NOT(std::vector<std::string> & args);
         void handle_FLN(std::vector<std::string> & args);
         void handle_MSG(std::vector<std::string> & args);
         void handle_RNG(std::vector<std::string> & args);


Index: centerim.spec
===================================================================
RCS file: /cvs/pkgs/rpms/centerim/FC-6/centerim.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- centerim.spec	9 Oct 2007 06:22:41 -0000	1.1
+++ centerim.spec	28 Nov 2007 13:33:25 -0000	1.2
@@ -4,7 +4,7 @@
 
 Name:           centerim
 Version:        %{snapshot_ver}
-Release:        1%{?dist}
+Release:        3%{?dist}.1
 
 Summary:        Text mode menu- and window-driven IM
 
@@ -20,6 +20,10 @@
 # Fix ljhook
 Patch101:       centerim-4.22.1-ljtags.patch
 Patch102:       centerim-4.22.1-ljtypo.patch
+# Fix MSN
+Patch103:       centerim-4.22.1-msn-NOT.patch
+# Fix ICQ
+Patch104:       centerim-4.22.1-icqack.patch
 
 ## feature enh
 # provided by Andy Shevchenko... will ask before quit
@@ -45,13 +49,15 @@
 %patch7 -p1 -b .overflows
 %patch101 -p1 -b .ljtags
 %patch102 -p1 -b .ljtypo
+%patch103 -p1 -b .msn-NOT
+%patch104 -p1 -b .icqack
 %patch201 -p1 -b .quitask
 
 %build
 %configure \
-	--with-ssl \
-	--disable-rpath \
-	--enable-locales-fix
+        --with-ssl \
+        --disable-rpath \
+        --enable-locales-fix
 make %{?_smp_flags}
 
 %check
@@ -77,6 +83,12 @@
 %{_mandir}/man1/*
 
 %changelog
+* Wed Nov 28 2007 Lubomir Kundrak <lkundrak at redhat.com> - 20071003-3.1
+- Attempt to fix problems with states of server-side contacts (#402301)
+
+* Tue Oct 23 2007 Lubomir Kundrak <lkundrak at redhat.com> - 20071003-3
+- Thanks to Stéphane Bisinger, MSN works
+
 * Mon Oct 08 2007 Lubomir Kundrak <lkundrak at redhat.com> - 20071003-2
 - Fixed BuildRoot
 - Removed redundant BuildReq




More information about the fedora-extras-commits mailing list