diff mcabber/src/compl.c @ 757:ae23c8826efb

Improve completion for the "/event" command
author Mikael Berthe <mikael@lilotux.net>
date Tue, 14 Mar 2006 12:43:23 +0100
parents 2f027806cd48
children 89ad7b530b3c
line wrap: on
line diff
--- a/mcabber/src/compl.c	Tue Mar 14 12:22:35 2006 +0100
+++ b/mcabber/src/compl.c	Tue Mar 14 12:43:23 2006 +0100
@@ -33,6 +33,7 @@
 
 #include "compl.h"
 #include "roster.h"
+#include "events.h"
 
 // Completion structure
 typedef struct {
@@ -220,6 +221,9 @@
   if (cat_flags == COMPL_RESOURCE) {
     return buddy_getresources(NULL);
   }
+  if (cat_flags == COMPL_EVENTSID) {
+    return evs_geteventscomplist();
+  }
 
   return NULL;
 }