about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2002-06-26 15:44:15 +0000
committerAlexander Barton <alex@barton.de>2002-06-26 15:44:15 +0000
commit39b9f65d0d9ca819b054533b66533afbe7dd973c (patch)
tree7b503b4d00b0dc44eacb3542b10409df7c423a85
parentcf9629b9c7dfd7bf2bca7fa6d7bb3868ec9fae8e (diff)
downloadngircd-39b9f65d0d9ca819b054533b66533afbe7dd973c.tar.gz
ngircd-39b9f65d0d9ca819b054533b66533afbe7dd973c.zip
- IRC_LIST ruft nun Match() auf und beherrscht somit nun Patterns.
-rw-r--r--src/ngircd/irc-channel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c
index e5d27885..7160afda 100644
--- a/src/ngircd/irc-channel.c
+++ b/src/ngircd/irc-channel.c
@@ -9,7 +9,7 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * 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
  */
@@ -27,6 +27,7 @@
 #include "channel.h"
 #include "lists.h"
 #include "log.h"
+#include "match.h"
 #include "messages.h"
 #include "parse.h"
 #include "irc.h"
@@ -293,9 +294,8 @@ IRC_LIST( CLIENT *Client, REQUEST *Req )
 		chan = Channel_First( );
 		while( chan )
 		{
-			/* Passt die Suchmaske auf diesen Channel? Bisher werden hier
-			 * "regular expressions" aber noch nicht unterstuetzt ... */
-			if(( strcasecmp( pattern, Channel_Name( chan )) == 0 ) || ( strcmp( pattern, "*" ) == 0 ))
+			/* Passt die Suchmaske auf diesen Channel? */
+			if( Match( pattern, Channel_Name( chan )))
 			{
 				/* Treffer! */
 				if( ! IRC_WriteStrClient( Client, RPL_LIST_MSG, Client_ID( Client), Channel_Name( chan ), Channel_MemberCount( chan ), Channel_Topic( chan ))) return DISCONNECTED;