1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-28 12:56:18 +00:00

- IRC_LIST ruft nun Match() auf und beherrscht somit nun Patterns.

This commit is contained in:
Alexander Barton 2002-06-26 15:44:15 +00:00
parent cf9629b9c7
commit 39b9f65d0d

View File

@ -9,7 +9,7 @@
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
* *
* $Id: irc-channel.c,v 1.9 2002/06/10 21:10:25 alex Exp $ * $Id: irc-channel.c,v 1.10 2002/06/26 15:44:15 alex Exp $
* *
* irc-channel.c: IRC-Channel-Befehle * irc-channel.c: IRC-Channel-Befehle
*/ */
@ -27,6 +27,7 @@
#include "channel.h" #include "channel.h"
#include "lists.h" #include "lists.h"
#include "log.h" #include "log.h"
#include "match.h"
#include "messages.h" #include "messages.h"
#include "parse.h" #include "parse.h"
#include "irc.h" #include "irc.h"
@ -293,9 +294,8 @@ IRC_LIST( CLIENT *Client, REQUEST *Req )
chan = Channel_First( ); chan = Channel_First( );
while( chan ) while( chan )
{ {
/* Passt die Suchmaske auf diesen Channel? Bisher werden hier /* Passt die Suchmaske auf diesen Channel? */
* "regular expressions" aber noch nicht unterstuetzt ... */ if( Match( pattern, Channel_Name( chan )))
if(( strcasecmp( pattern, Channel_Name( chan )) == 0 ) || ( strcmp( pattern, "*" ) == 0 ))
{ {
/* Treffer! */ /* Treffer! */
if( ! IRC_WriteStrClient( Client, RPL_LIST_MSG, Client_ID( Client), Channel_Name( chan ), Channel_MemberCount( chan ), Channel_Topic( chan ))) return DISCONNECTED; if( ! IRC_WriteStrClient( Client, RPL_LIST_MSG, Client_ID( Client), Channel_Name( chan ), Channel_MemberCount( chan ), Channel_Topic( chan ))) return DISCONNECTED;