Commit Diff


commit - 1256f34736a59be6728a7f9f9ad15168376a17ff
commit + 938abb0236cece1a05f713eb96fa0b9dd4cf56c3
blob - 85aa820ad6cc90c0ab664ee744cc0b6c29bf0647
blob + 2ed347ba9a188c67c10fcea392b5ed3a22b5148a
--- src/ngircd/irc-server.c
+++ src/ngircd/irc-server.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-server.c,v 1.15 2002/09/02 19:05:03 alex Exp $
+ * $Id: irc-server.c,v 1.16 2002/09/03 23:55:44 alex Exp $
  *
  * irc-server.c: IRC-Befehle fuer Server-Links
  */
@@ -162,6 +162,13 @@ IRC_SERVER( CLIENT *Client, REQUEST *Req )
 		chan = Channel_First( );
 		while( chan )
 		{
+			/* Wenn unterstuetzt, CHANINFO senden */
+			if( strchr( Client_Flags( Client ), 'C' ))
+			{
+				/* CHANINFO senden */
+				if( ! IRC_WriteStrClient( Client, "CHANINFO %s +%s :%s", Channel_Name( chan ), Channel_Modes( chan ), Channel_Topic( chan ))) return DISCONNECTED;
+			}
+			
 			/* alle Member suchen */
 			cl2chan = Channel_FirstMember( chan );
 			sprintf( str, "NJOIN %s :", Channel_Name( chan ));