[ekiga] Do not count ekiga.net's first entry "Search Results Limited to 100 Entries"



commit 9949f91e454631aee6287b99eca434bc63879af9
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Sun May 30 18:06:05 2010 +0200

    Do not count ekiga.net's first entry "Search Results Limited to 100 Entries"
    
    Fix bug #551963.

 plugins/ldap/ldap-book.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/ldap/ldap-book.cpp b/plugins/ldap/ldap-book.cpp
index 54250ce..cb27d17 100644
--- a/plugins/ldap/ldap-book.cpp
+++ b/plugins/ldap/ldap-book.cpp
@@ -901,6 +901,9 @@ OPENLDAP::Book::refresh_result ()
     msg_result = ldap_next_message (ldap_context, msg_result);
   } while (msg_result != NULL);
 
+  // Do not count ekiga.net's first entry "Search Results ... 100 entries"
+  if (strcmp (bookinfo.uri_host.c_str(), "ldap://ekiga.net";) == 0)
+    nbr--;
   c_status = g_strdup_printf (ngettext ("%d user found",
 					"%d users found", nbr), nbr);
   status = c_status;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]