Mercurial > hg
comparison mcabber/src/main.c @ 1179:0f7e0346d9cb
Add aspell support
[Note: Patch slightly modified by Mikael]
author | entragian <entragian@o2.pl> |
---|---|
date | Wed, 04 Apr 2007 23:23:37 +0200 |
parents | 547a8ca7c1a8 |
children | 7b8765c10abb |
comparison
equal
deleted
inserted
replaced
1178:220e04816524 | 1179:0f7e0346d9cb |
---|---|
374 optval = (settings_opt_get_int("logging") > 0); | 374 optval = (settings_opt_get_int("logging") > 0); |
375 optval2 = (settings_opt_get_int("load_logs") > 0); | 375 optval2 = (settings_opt_get_int("load_logs") > 0); |
376 if (optval || optval2) | 376 if (optval || optval2) |
377 hlog_enable(optval, settings_opt_get("logging_dir"), optval2); | 377 hlog_enable(optval, settings_opt_get("logging_dir"), optval2); |
378 | 378 |
379 #ifdef HAVE_ASPELL_H | |
380 /* Initialize aspell */ | |
381 if (settings_opt_get_int("aspell_enable")) { | |
382 spellcheck_init(); | |
383 } | |
384 #endif | |
385 | |
379 optstring = settings_opt_get("events_command"); | 386 optstring = settings_opt_get("events_command"); |
380 if (optstring) | 387 if (optstring) |
381 hk_ext_cmd_init(optstring); | 388 hk_ext_cmd_init(optstring); |
382 | 389 |
383 ping = 40; | 390 ping = 40; |
420 jb_disconnect(); | 427 jb_disconnect(); |
421 #ifdef HAVE_GPGME | 428 #ifdef HAVE_GPGME |
422 gpg_terminate(); | 429 gpg_terminate(); |
423 #endif | 430 #endif |
424 scr_TerminateCurses(); | 431 scr_TerminateCurses(); |
432 #ifdef HAVE_ASPELL_H | |
433 /* Deinitialize aspell */ | |
434 if (settings_opt_get_int("aspell_enable")) { | |
435 spellcheck_deinit(); | |
436 } | |
437 #endif | |
425 | 438 |
426 printf("\n\nThanks for using mcabber!\n"); | 439 printf("\n\nThanks for using mcabber!\n"); |
427 | 440 |
428 return 0; | 441 return 0; |
429 } | 442 } |