changeset 96:8b2703ccc4be

[/trunk] Changeset 110 by mikael * Work on compl.* integration. No big change yet...
author mikael
date Wed, 20 Apr 2005 19:10:28 +0000
parents 9e6b7897ec37
children 191f4d00d19b
files mcabber/src/commands.c mcabber/src/commands.h mcabber/src/main.c
diffstat 3 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/commands.c	Wed Apr 20 19:06:25 2005 +0000
+++ b/mcabber/src/commands.c	Wed Apr 20 19:10:28 2005 +0000
@@ -60,8 +60,6 @@
 // ...
 void cmd_init(void)
 {
-  guint cflags[4];
-
   //cmd_add("add");
   //cmd_add("clear");
   //cmd_add("del");
--- a/mcabber/src/commands.h	Wed Apr 20 19:06:25 2005 +0000
+++ b/mcabber/src/commands.h	Wed Apr 20 19:10:28 2005 +0000
@@ -3,7 +3,8 @@
 
 #include <glib.h>
 
-int process_line(char *line);
+void cmd_init(void);
+int  process_line(char *line);
 
 #endif /* __COMMANDS_H__ */
 
--- a/mcabber/src/main.c	Wed Apr 20 19:06:25 2005 +0000
+++ b/mcabber/src/main.c	Wed Apr 20 19:10:28 2005 +0000
@@ -9,7 +9,8 @@
 #include "jabglue.h"
 #include "screen.h"
 #include "parsecfg.h"
-#include "roster.h"
+//#include "roster.h"
+#include "commands.h"
 #include "lang.h"
 #include "utils.h"
 #include "harddefines.h"
@@ -189,6 +190,9 @@
   if (optstring && (atoi(optstring) > 0))
     buddylist_hide_offline_buddies(TRUE);
 
+  /* Initialize commands system */
+  cmd_init();
+
   keypad(scr_GetInputWindow(), TRUE);
   while (ret != 255) {
     alarm(ping);