* More license declarations
[citadel.git] / citadel / modules / pas2 / serv_pas2.c
index 7df51d60dfcd19786d91a53e871b85b59a0f1c98..c6bb35b3dcfa8ec4b615c33fe20a64044243ffee 100644 (file)
@@ -1,6 +1,22 @@
 /*
  * cmd_pas2 - MD5 APOP style auth keyed off of the hash of the password
  *            plus a nonce displayed at the login banner.
+ *
+ * Copyright (c) 1994-2009 by the citadel.org team
+ *
+ *  This program 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 3 of the License, or
+ *  (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
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  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, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 #include <stdlib.h>
@@ -88,8 +104,11 @@ void cmd_pas2(char *argbuf)
 
 CTDL_MODULE_INIT(pas2)
 {
-        CtdlRegisterProtoHook(cmd_pas2, "PAS2", "APOP-based login");
-
+       if (!threading)
+       {
+               CtdlRegisterProtoHook(cmd_pas2, "PAS2", "APOP-based login");
+       }
+       
        /* return our Subversion id for the Log */
         return "$Id$";
 }