comparison mcabber/src/main.c @ 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 3c51989b0982
children 2b4cc6bc5bf2
comparison
equal deleted inserted replaced
95:9e6b7897ec37 96:8b2703ccc4be
7 #include <getopt.h> 7 #include <getopt.h>
8 8
9 #include "jabglue.h" 9 #include "jabglue.h"
10 #include "screen.h" 10 #include "screen.h"
11 #include "parsecfg.h" 11 #include "parsecfg.h"
12 #include "roster.h" 12 //#include "roster.h"
13 #include "commands.h"
13 #include "lang.h" 14 #include "lang.h"
14 #include "utils.h" 15 #include "utils.h"
15 #include "harddefines.h" 16 #include "harddefines.h"
16 17
17 18
187 188
188 optstring = cfg_read("hide_offline_buddies"); 189 optstring = cfg_read("hide_offline_buddies");
189 if (optstring && (atoi(optstring) > 0)) 190 if (optstring && (atoi(optstring) > 0))
190 buddylist_hide_offline_buddies(TRUE); 191 buddylist_hide_offline_buddies(TRUE);
191 192
193 /* Initialize commands system */
194 cmd_init();
195
192 keypad(scr_GetInputWindow(), TRUE); 196 keypad(scr_GetInputWindow(), TRUE);
193 while (ret != 255) { 197 while (ret != 255) {
194 alarm(ping); 198 alarm(ping);
195 key = scr_Getch(); 199 key = scr_Getch();
196 if (key != ERR) 200 if (key != ERR)