Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/mcabber/src/main.c Wed Apr 04 22:43:47 2007 +0200 +++ b/mcabber/src/main.c Wed Apr 04 23:23:37 2007 +0200 @@ -376,6 +376,13 @@ if (optval || optval2) hlog_enable(optval, settings_opt_get("logging_dir"), optval2); +#ifdef HAVE_ASPELL_H + /* Initialize aspell */ + if (settings_opt_get_int("aspell_enable")) { + spellcheck_init(); + } +#endif + optstring = settings_opt_get("events_command"); if (optstring) hk_ext_cmd_init(optstring); @@ -422,6 +429,12 @@ gpg_terminate(); #endif scr_TerminateCurses(); +#ifdef HAVE_ASPELL_H + /* Deinitialize aspell */ + if (settings_opt_get_int("aspell_enable")) { + spellcheck_deinit(); + } +#endif printf("\n\nThanks for using mcabber!\n");