repo: ngircd
action: commit
revision: 
path_from: 
revision_from: ac9da09e87b16c8e24e78f95947eadc62e314ea3:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit ac9da09e87b16c8e24e78f95947eadc62e314ea3
Author: Alexander Barton 
Date:   Sun Dec 30 11:42:00 2001 +0000

    - der Server meldet nun eine ordentliche "Start-Zeit".

diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c
index 1c4212c11d0892bd3d6527f7f8e0143553c5e220..
index ..e9061890402eb1dc9fd0fe10789b1d8d2976f64e 100644
--- a/src/ngircd/irc.c
+++ b/src/ngircd/irc.c
@@ -9,11 +9,14 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: irc.c,v 1.13 2001/12/29 03:10:06 alex Exp $
+ * $Id: irc.c,v 1.14 2001/12/30 11:42:00 alex Exp $
  *
  * irc.c: IRC-Befehle
  *
  * $Log: irc.c,v $
+ * Revision 1.14  2001/12/30 11:42:00  alex
+ * - der Server meldet nun eine ordentliche "Start-Zeit".
+ *
  * Revision 1.13  2001/12/29 03:10:06  alex
  * - Neue Funktion IRC_MODE() implementiert, div. Aenderungen.
  * - neue configure-Optione "--enable-strict-rfc".
@@ -70,6 +73,7 @@
 #include 
 #include 

+#include "ngircd.h"
 #include "client.h"
 #include "conf.h"
 #include "log.h"
@@ -477,7 +481,7 @@ LOCAL BOOLEAN Hello_User( CLIENT *Client )

 	IRC_WriteStrClient( Client, This_Server, RPL_WELCOME_MSG, Client->nick, Client_GetID( Client ));
 	IRC_WriteStrClient( Client, This_Server, RPL_YOURHOST_MSG, Client->nick, This_Server->host );
-	IRC_WriteStrClient( Client, This_Server, RPL_CREATED_MSG, Client->nick );
+	IRC_WriteStrClient( Client, This_Server, RPL_CREATED_MSG, Client->nick, NGIRCd_StartStr );
 	IRC_WriteStrClient( Client, This_Server, RPL_MYINFO_MSG, Client->nick, This_Server->host );

 	Client->type = CLIENT_USER;
diff --git a/src/ngircd/messages.h b/src/ngircd/messages.h
index 098b66f741f4df0e7a4f3eb0e21f9a82c33c7f57..
index ..8faae465b0df8a486db7ad3e334f7854a98be693 100644
--- a/src/ngircd/messages.h
+++ b/src/ngircd/messages.h
@@ -9,11 +9,14 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: messages.h,v 1.9 2001/12/29 03:06:56 alex Exp $
+ * $Id: messages.h,v 1.10 2001/12/30 11:42:00 alex Exp $
  *
  * irc.h: IRC-Befehle (Header)
  *
  * $Log: messages.h,v $
+ * Revision 1.10  2001/12/30 11:42:00  alex
+ * - der Server meldet nun eine ordentliche "Start-Zeit".
+ *
  * Revision 1.9  2001/12/29 03:06:56  alex
  * - Texte ergaenzt, einige Bugs behoben (Leerzeichen falsch gesetzt, z.B.)
  *
@@ -57,7 +60,7 @@
 #define RPL_YOURHOST_MSG		RPL_YOURHOST" %s :Your host is %s, running ngircd "VERSION"-"P_OSNAME"/"P_ARCHNAME

 #define RPL_CREATED			"003"
-#define RPL_CREATED_MSG			RPL_CREATED" %s :This server was created once upon a time ... ;-)"
+#define RPL_CREATED_MSG			RPL_CREATED" %s :This server was started %s"

 #define RPL_MYINFO			"004"
 #define RPL_MYINFO_MSG			RPL_MYINFO" %s %s ngircd-"VERSION" + +"
diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c
index 1eb5e5479fdbdbf9928dd36fd4c9abeecdfaa1c8..
index ..e630ea7078a96269fbb3f9d6a1ad32057932501b 100644
--- a/src/ngircd/ngircd.c
+++ b/src/ngircd/ngircd.c
@@ -9,11 +9,14 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: ngircd.c,v 1.12 2001/12/29 03:07:36 alex Exp $
+ * $Id: ngircd.c,v 1.13 2001/12/30 11:42:00 alex Exp $
  *
  * ngircd.c: Hier beginnt alles ;-)
  *
  * $Log: ngircd.c,v $
+ * Revision 1.13  2001/12/30 11:42:00  alex
+ * - der Server meldet nun eine ordentliche "Start-Zeit".
+ *
  * Revision 1.12  2001/12/29 03:07:36  alex
  * - einige Loglevel geaendert.
  *
@@ -68,6 +71,7 @@
 #include 
 #include 
 #include 
+#include 

 #include "channel.h"
 #include "client.h"
@@ -91,6 +95,8 @@ GLOBAL INT main( INT argc, CONST CHAR *argv[] )
 	portab_check_types( );

 	/* Globale Variablen initialisieren */
+	NGIRCd_Start = time( NULL );
+	strftime( NGIRCd_StartStr, 64, "%a %b %d %Y at %H:%M:%S (%Z)", localtime( &NGIRCd_Start ));
 	NGIRCd_Quit = FALSE;

 	/* Module initialisieren */
diff --git a/src/ngircd/ngircd.h b/src/ngircd/ngircd.h
index df60f25c9b44861040d15767a7166229c3c225e7..
index ..e23279b6daf17c58337bce336cf6b558304f4414 100644
--- a/src/ngircd/ngircd.h
+++ b/src/ngircd/ngircd.h
@@ -9,17 +9,19 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: ngircd.h,v 1.2 2001/12/12 23:30:01 alex Exp $
+ * $Id: ngircd.h,v 1.3 2001/12/30 11:42:00 alex Exp $
  *
  * ngircd.h: Prototypen aus dem "Haupt-Modul"
  *
  * $Log: ngircd.h,v $
+ * Revision 1.3  2001/12/30 11:42:00  alex
+ * - der Server meldet nun eine ordentliche "Start-Zeit".
+ *
  * Revision 1.2  2001/12/12 23:30:01  alex
  * - NGIRCd_Quit ist nun das globale Flag zum Beenden des ngircd.
  *
  * Revision 1.1.1.1  2001/12/11 21:53:04  alex
- * Imported sources to CVS.
- *
+ * - Imported sources to CVS.
  */


@@ -27,6 +29,9 @@
 #define __ngircd_h__


+GLOBAL time_t NGIRCd_Start;		/* Startzeitpunkt des Daemon */
+GLOBAL CHAR NGIRCd_StartStr[64];
+
 GLOBAL BOOLEAN NGIRCd_Quit;		/* TRUE: Hauptschleife beenden */


-----END OF PAGE-----