about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2001-12-26 03:23:03 +0000
committerAlexander Barton <alex@barton.de>2001-12-26 03:23:03 +0000
commitc9067fb7ff6b40b19eeac818cde51bf72dee174b (patch)
tree4ba0485a0a23ad3ea77750f0d9d595c20e7c5ee3 /src
parente0c5ecee7efc75001d8bc1db8bec9438527c2fba (diff)
downloadngircd-c9067fb7ff6b40b19eeac818cde51bf72dee174b.tar.gz
ngircd-c9067fb7ff6b40b19eeac818cde51bf72dee174b.zip
- PING/PONG-Befehle implementiert.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/parse.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c
index 2d539bdd..aa783572 100644
--- a/src/ngircd/parse.c
+++ b/src/ngircd/parse.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: parse.c,v 1.4 2001/12/25 22:04:26 alex Exp $
+ * $Id: parse.c,v 1.5 2001/12/26 03:23:03 alex Exp $
  *
  * parse.c: Parsen der Client-Anfragen
  *
  * $Log: parse.c,v $
+ * Revision 1.5  2001/12/26 03:23:03  alex
+ * - PING/PONG-Befehle implementiert.
+ *
  * Revision 1.4  2001/12/25 22:04:26  alex
  * - Aenderungen an den Debug- und Logging-Funktionen.
  *
@@ -219,10 +222,12 @@ LOCAL BOOLEAN Handle_Request( CONN_ID Idx, REQUEST *Req )
 	else if( strcasecmp( Req->command, "NICK" ) == 0 ) return IRC_NICK( client, Req );
 	else if( strcasecmp( Req->command, "USER" ) == 0 ) return IRC_USER( client, Req );
 	else if( strcasecmp( Req->command, "QUIT" ) == 0 ) return IRC_QUIT( client, Req );
+	else if( strcasecmp( Req->command, "PING" ) == 0 ) return IRC_PING( client, Req );
+	else if( strcasecmp( Req->command, "PONG" ) == 0 ) return IRC_PONG( client, Req );
 	else if( strcasecmp( Req->command, "MOTD" ) == 0 ) return IRC_MOTD( client, Req );
 
 	/* Unbekannter Befehl */
-	Conn_WriteStr( Idx, ERR_UNKNOWNCOMMAND_MSG, Req->command );
+	IRC_WriteStr_Client( client, This_Server, ERR_UNKNOWNCOMMAND_MSG, Client_Name( client ), Req->command );
 
 	Log( LOG_DEBUG, "Connection %d: Unknown command '%s', %d %s,%s prefix.", Idx, Req->command, Req->argc, Req->argc == 1 ? "parameter" : "parameters", Req->prefix ? "" : " no" );