]> arthur.barton.de Git - ngircd-alex.git/commitdiff
- das Server-Passwort kann nun konfiguriert werden.
authorAlexander Barton <alex@barton.de>
Thu, 3 Jan 2002 02:27:20 +0000 (02:27 +0000)
committerAlexander Barton <alex@barton.de>
Thu, 3 Jan 2002 02:27:20 +0000 (02:27 +0000)
src/ngircd/conf.c
src/ngircd/conf.h

index 8b945e82da53a89ab66796fb8900292c8217def2..4e6137acfce5620dc4121ceb87fddd57c393ccd8 100644 (file)
@@ -9,11 +9,14 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: conf.c,v 1.9 2002/01/02 02:49:15 alex Exp $
+ * $Id: conf.c,v 1.10 2002/01/03 02:27:20 alex Exp $
  *
  * conf.h: Konfiguration des ngircd
  *
  * $Log: conf.c,v $
+ * Revision 1.10  2002/01/03 02:27:20  alex
+ * - das Server-Passwort kann nun konfiguriert werden.
+ *
  * Revision 1.9  2002/01/02 02:49:15  alex
  * - Konfigurationsdatei "Samba like" umgestellt.
  * - es koennen nun mehrere Server und Oprtatoren konfiguriert werden.
@@ -79,6 +82,7 @@ GLOBAL VOID Conf_Init( VOID )
 
        strcpy( Conf_ServerName, "" );
        strcpy( Conf_ServerInfo, PACKAGE" "VERSION );
+       strcpy( Conf_ServerPwd, "" );
 
        strcpy( Conf_MotdFile, "/usr/local/etc/ngircd.motd" );
 
@@ -216,6 +220,13 @@ GLOBAL VOID Handle_GLOBAL( INT Line, CHAR *Var, CHAR *Arg )
                Conf_ServerInfo[CLIENT_INFO_LEN - 1] = '\0';
                return;
        }
+       if( strcasecmp( Var, "Password" ) == 0 )
+       {
+               /* Der Server-Name */
+               strncpy( Conf_ServerPwd, Arg, CLIENT_PASS_LEN );
+               Conf_ServerPwd[CLIENT_PASS_LEN - 1] = '\0';
+               return;
+       }
        if( strcasecmp( Var, "Ports" ) == 0 )
        {
                /* Ports, durch "," getrennt, auf denen der Server
index edb97e1ff8fc1ebe5b01a246ac91259e6b62ffbf..3c9cd2130c77cfa2860b840d6ce9cc546d027c6f 100644 (file)
@@ -9,11 +9,14 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: conf.h,v 1.8 2002/01/02 02:49:16 alex Exp $
+ * $Id: conf.h,v 1.9 2002/01/03 02:27:20 alex Exp $
  *
  * conf.h: Konfiguration des ngircd (Header)
  *
  * $Log: conf.h,v $
+ * Revision 1.9  2002/01/03 02:27:20  alex
+ * - das Server-Passwort kann nun konfiguriert werden.
+ *
  * Revision 1.8  2002/01/02 02:49:16  alex
  * - Konfigurationsdatei "Samba like" umgestellt.
  * - es koennen nun mehrere Server und Oprtatoren konfiguriert werden.
@@ -73,6 +76,9 @@ GLOBAL CHAR Conf_ServerName[CLIENT_ID_LEN];
 /* Servers-Info-Text */
 GLOBAL CHAR Conf_ServerInfo[CLIENT_INFO_LEN];
 
+/* Server-Passwort */
+GLOBAL CHAR Conf_ServerPwd[CLIENT_PASS_LEN];
+
 /* Datei mit MOTD-Text */
 GLOBAL CHAR Conf_MotdFile[FNAME_LEN];