commit - 17f7c6d3edf26e644b98e2b11fd3b1959ac8c0e6
commit + 210282d00fe9a66756ba9ff0fb62eb75aa49f238
blob - 511d2a2340c7e16f79f87dcfcf9fc2ca6864f6c8
blob + 48296077238a8d049b8cacb3983372b8eeca3175
--- src/ngircd/irc-info.c
+++ src/ngircd/irc-info.c
#include "portab.h"
-static char UNUSED id[] = "$Id: irc-info.c,v 1.7 2002/12/18 13:07:46 alex Exp $";
+static char UNUSED id[] = "$Id: irc-info.c,v 1.8 2002/12/18 13:55:41 alex Exp $";
#include "imp.h"
#include <assert.h>
CLIENT *from, *target, *cl;
CONN_ID con;
CHAR query;
+ COMMAND *cmd;
assert( Client != NULL );
assert( Req != NULL );
break;
case 'm': /* IRC-Befehle */
case 'M':
+ cmd = Parse_GetCommandStruct( );
+ while( cmd->name )
+ {
+ if( cmd->lcount > 0 || cmd->rcount > 0 )
+ {
+ if( ! IRC_WriteStrClient( from, RPL_STATSCOMMANDS_MSG, Client_ID( from ), cmd->name, cmd->lcount, cmd->bytes, cmd->rcount )) return DISCONNECTED;
+ }
+ cmd++;
+ }
break;
}