mcabber/src/main.c
changeset 1179 0f7e0346d9cb
parent 1176 547a8ca7c1a8
child 1192 7b8765c10abb
--- 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");