diff options
| author | Alexander Barton <alex@barton.de> | 2002-12-18 13:55:41 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2002-12-18 13:55:41 +0000 |
| commit | 210282d00fe9a66756ba9ff0fb62eb75aa49f238 (patch) | |
| tree | 8a9a0c8eaaf9155102cd440ec7353961cd6a08f5 /src | |
| parent | 17f7c6d3edf26e644b98e2b11fd3b1959ac8c0e6 (diff) | |
| download | ngircd-210282d00fe9a66756ba9ff0fb62eb75aa49f238.tar.gz ngircd-210282d00fe9a66756ba9ff0fb62eb75aa49f238.zip | |
- implemented subfunction "m" of STATS command.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-info.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c index 511d2a23..48296077 100644 --- a/src/ngircd/irc-info.c +++ b/src/ngircd/irc-info.c @@ -14,7 +14,7 @@ #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> @@ -332,6 +332,7 @@ IRC_STATS( CLIENT *Client, REQUEST *Req ) CLIENT *from, *target, *cl; CONN_ID con; CHAR query; + COMMAND *cmd; assert( Client != NULL ); assert( Req != NULL ); @@ -387,6 +388,15 @@ IRC_STATS( CLIENT *Client, REQUEST *Req ) 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; } |