]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc-login.c
- API fuer Hash() definiert.
[ngircd-alex.git] / src / ngircd / irc-login.c
index b5bad65e903a36d3ed7c0782c6e39bab552c5908..5333570fe0ea7311520564dbb93e463bec8ffa66 100644 (file)
@@ -9,31 +9,15 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: irc-login.c,v 1.4 2002/03/10 22:40:22 alex Exp $
+ * $Id: irc-login.c,v 1.8 2002/03/12 14:37:52 alex Exp $
  *
  * irc-login.c: Anmeldung und Abmeldung im IRC
- *
- * $Log: irc-login.c,v $
- * Revision 1.4  2002/03/10 22:40:22  alex
- * - IRC_PING() ist, wenn nicht im "strict RFC"-Mode, toleranter und akzptiert
- *   beliebig viele Parameter: z.B. BitchX sendet soetwas.
- *
- * Revision 1.3  2002/03/03 17:15:11  alex
- * - Source in weitere Module fuer IRC-Befehle aufgesplitted.
- *
- * Revision 1.2  2002/03/02 00:49:11  alex
- * - Bei der USER-Registrierung wird NICK nicht mehr sofort geforwarded,
- *   sondern erst dann, wenn auch ein gueltiges USER empfangen wurde.
- *
- * Revision 1.1  2002/02/27 23:26:21  alex
- * - Modul aus irc.c bzw. irc.h ausgegliedert.
  */
 
 
-#include <portab.h>
-#include "global.h"
+#include "portab.h"
 
-#include <imp.h>
+#include "imp.h"
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -46,7 +30,7 @@
 #include "log.h"
 #include "messages.h"
 
-#include <exp.h>
+#include "exp.h"
 #include "irc-login.h"
 
 
@@ -281,12 +265,13 @@ GLOBAL BOOLEAN IRC_QUIT( CLIENT *Client, REQUEST *Req )
                target = Client_Search( Req->prefix );
                if( ! target )
                {
-                       Log( LOG_ERR, "Got QUIT from %s for unknown client!?", Client_ID( Client ));
+                       /* Den Client kennen wir nicht (mehr), also nichts zu tun. */
+                       Log( LOG_WARNING, "Got QUIT from %s for unknown client!?", Client_ID( Client ));
                        return CONNECTED;
                }
 
-               if( Req->argc == 0 ) Client_Destroy( target, "Got QUIT command.", NULL );
-               else Client_Destroy( target, "Got QUIT command.", Req->argv[0] );
+               if( Req->argc == 0 ) Client_Destroy( target, "Got QUIT command.", NULL, TRUE );
+               else Client_Destroy( target, "Got QUIT command.", Req->argv[0], TRUE );
 
                return CONNECTED;
        }