diff mcabber/mcabber/compl.c @ 1685:1342df44c814

Improved events interface * User can pass additional arguments to event handler * MUC invitation reject now can be supplied a reason
author Myhailo Danylenko <isbear@ukrpost.net>
date Tue, 02 Feb 2010 22:44:18 +0100
parents 41c26b7d2890
children e6e89b1d7831
line wrap: on
line diff
--- a/mcabber/mcabber/compl.c	Tue Jan 19 19:16:38 2010 +0200
+++ b/mcabber/mcabber/compl.c	Tue Feb 02 22:44:18 2010 +0100
@@ -276,7 +276,12 @@
     return buddy_getresources_locale(NULL);
   }
   if (cat_flags == COMPL_EVENTSID) {
-    return evs_geteventslist(TRUE);
+    GSList *compl = evs_geteventslist();
+    GSList *cel;
+    for (cel = compl; cel; cel = cel->next)
+      cel->data = g_strdup(cel->data);
+    compl = g_slist_append(compl, g_strdup("list"));
+    return compl;
   }
 
   *dynlist = FALSE;