Commit Diff


commit - 2006b6195e63e56534933315cb86306d5208fe7a
commit + 0e092b3f062ed4e0b5ee019de203cc7724ab0bae
blob - fcceccc6dd235b05c673d5d3118025daccf789c2
blob + d6c7bd1ff6cf4061a1056594ffd2d32c548aef50
--- src/ngircd/irc-server.c
+++ src/ngircd/irc-server.c
@@ -9,14 +9,16 @@
  * 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.1 2002/03/03 17:15:11 alex Exp $
+ * $Id: irc-server.c,v 1.2 2002/03/06 15:50:14 alex Exp $
  *
  * irc-server.c: IRC-Befehle fuer Server-Links
  *
  * $Log: irc-server.c,v $
+ * Revision 1.2  2002/03/06 15:50:14  alex
+ * - kleine Code-Umstellungen.
+ *
  * Revision 1.1  2002/03/03 17:15:11  alex
  * - Source in weitere Module fuer IRC-Befehle aufgesplitted.
- *
  */
 
 
@@ -155,10 +157,9 @@ GLOBAL BOOLEAN IRC_SERVER( CLIENT *Client, REQUEST *Re
 		chan = Channel_First( );
 		while( chan )
 		{
-			sprintf( str, "NJOIN %s :", Channel_Name( chan ));
-
 			/* alle Member suchen */
 			cl2chan = Channel_FirstMember( chan );
+			sprintf( str, "NJOIN %s :", Channel_Name( chan ));
 			while( cl2chan )
 			{
 				cl = Channel_GetClient( cl2chan );
@@ -170,7 +171,7 @@ GLOBAL BOOLEAN IRC_SERVER( CLIENT *Client, REQUEST *Re
 				if( strchr( Channel_UserModes( chan, cl ), 'o' )) strcat( str, "@" );
 				strcat( str, Client_ID( cl ));
 
-				if( strlen( str ) > ( LINE_LEN - CLIENT_NICK_LEN - 4 ))
+				if( strlen( str ) > ( LINE_LEN - CLIENT_NICK_LEN - 8 ))
 				{
 					/* Zeile senden */
 					if( ! IRC_WriteStrClient( Client, str )) return DISCONNECTED;