ChanServ seen fixes; other cleanups
[srvx.git] / src / helpfile.c
index 48f187f0f0152d80f950718c4dc06e8782571b7b..092045c5951a146b432748ae837a2535d7b3c8c2 100644 (file)
@@ -1,11 +1,12 @@
 /* helpfile.c - Help file loading and display
  * Copyright 2000-2004 srvx Development Team
  *
- * This program is free software; you can redistribute it and/or modify
+ * This file is part of srvx.
+ *
+ * srvx is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.  Important limitations are
- * listed in the COPYING file that accompanies this software.
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -13,7 +14,8 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, email srvx-maintainers@srvx.net.
+ * along with srvx; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
  */
 
 #include "conf.h"
@@ -163,10 +165,8 @@ static struct language *language_read(const char *name)
 
     /* Open the directory stream; if we can't, fail. */
     snprintf(filename, sizeof(filename), "languages/%s", name);
-    if (!(dir = opendir(filename))) {
-        
+    if (!(dir = opendir(filename)))
         return NULL;
-    }
     if (!(lang = dict_find(languages, name, NULL)))
         lang = language_alloc(name);
 
@@ -991,7 +991,7 @@ void message_register_table(const struct message_entry *table)
     }
 }
 
-void helpfile_finalize(void)
+void helpfile_init(void)
 {
     message_register_table(msgtab);
     language_read_all();