]> git.pld-linux.org Git - packages/gossip.git/commitdiff
- do not die when contact is not found (press C-N and enter 1111)
authorwrobell <wrobell@pld-linux.org>
Sat, 8 Jan 2005 03:29:47 +0000 (03:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gossip-roster-not-found.patch -> 1.1

gossip-roster-not-found.patch [new file with mode: 0644]

diff --git a/gossip-roster-not-found.patch b/gossip-roster-not-found.patch
new file mode 100644 (file)
index 0000000..cf5e5a5
--- /dev/null
@@ -0,0 +1,27 @@
+--- gossip-0.8/src/gossip-app.c.orig   2005-01-08 04:19:38.877406688 +0100
++++ gossip-0.8/src/gossip-app.c        2005-01-08 04:22:41.717610752 +0100
+@@ -1630,16 +1630,18 @@
+               if (str && strcmp (str, "") != 0) {
+                       item = gossip_roster_find_item (gossip_app_get_roster (),
+                                                       str);
+-                      if (!item) {
++                      if (item) {
++                              contact = gossip_roster_get_contact_from_item (gossip_app_get_roster (),
++                                                              item);
++                              chat = gossip_private_chat_get_for_contact (contact, TRUE);
++                              
++                              gossip_chat_present (GOSSIP_CHAT (chat));
++                      }
++                      else {
+                               /* FIXME: Display error dialog... */
+                               g_warning ("'%s' is not a valid JID or nick name.", str);
+                       }
+-                      contact = gossip_roster_get_contact_from_item (gossip_app_get_roster (),
+-                                                             item);
+-                      chat = gossip_private_chat_get_for_contact (contact, TRUE);
+-                      
+-                      gossip_chat_present (GOSSIP_CHAT (chat));
+               }
+       }
This page took 0.02699 seconds and 4 git commands to generate.