mirror of
https://github.com/osmarks/ngircd.git
synced 2025-03-27 11:16:56 +00:00
- der Server meldet nun eine ordentliche "Start-Zeit".
This commit is contained in:
parent
bc140df80b
commit
ac9da09e87
@ -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 <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#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;
|
||||
|
@ -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" + +"
|
||||
|
@ -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 <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
#include <time.h>
|
||||
|
||||
#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 */
|
||||
|
@ -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 */
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user