summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2003-01-08 17:45:15 +0000
committerAlexander Barton <alex@barton.de>2003-01-08 17:45:15 +0000
commitbb94d18115c564c9ee4c3518f808649878cbfb67 (patch)
treee1be858a659b6d3959baa330362516945ed2ab94 /src
parent3b79965e384f670618c1082dbf7fb860e17c8794 (diff)
downloadngircd-bb94d18115c564c9ee4c3518f808649878cbfb67.tar.gz
ngircd-bb94d18115c564c9ee4c3518f808649878cbfb67.zip
- fixed up propagation of modes with arguments between servers.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/irc-channel.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ngircd/irc-channel.c b/src/ngircd/irc-channel.c
index e5b912b4..b5fc0768 100644
--- a/src/ngircd/irc-channel.c
+++ b/src/ngircd/irc-channel.c
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: irc-channel.c,v 1.23 2003/01/01 13:29:40 alex Exp $";
+static char UNUSED id[] = "$Id: irc-channel.c,v 1.24 2003/01/08 17:45:15 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -386,9 +386,13 @@ IRC_CHANINFO( CLIENT *Client, REQUEST *Req )
 		ptr = Channel_Modes( chan );
 		if( ! *ptr )
 		{
-			/* OK, es sind noch keine Modes gesetzt */
+			/* OK, this channel doesn't have modes jet, set the received ones: */
 			Channel_SetModes( chan, &Req->argv[1][1] );
 			IRC_WriteStrChannelPrefix( Client, chan, from, FALSE, "MODE %s +%s", Req->argv[0], &Req->argv[1][1] );
+
+			/* Delete modes which we never want to inherit */
+			Channel_ModeDel( chan, 'l' );
+			Channel_ModeDel( chan, 'k' );
 		}
 	}
 	else Log( LOG_WARNING, "CHANNELINFO: invalid MODE format ignored!" );