[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

modes.patch



modes.patch (438 bytes)

Enhanced files: ircd/channel.c

Allows the limit of a channel from outside to be shown when 
performing MODE <channel> with no further arguments.  This only 
works if the channel can be shown to the user [ShowChannel(user, 
channel) is true; the channel is not secret or private].  Performance 
of when the user is a member of the channel or a server is issuing 
the query was not changed.

-- David-R <rientjes@xxxxxxxxxxxxxxxx>

diff -ru irc2.10.3b14/ircd/channel.c irc2.10.3b14.modes/ircd/channel.c
--- irc2.10.3b14/ircd/channel.c	Wed Jul 28 15:15:43 1999
+++ irc2.10.3b14.modes/ircd/channel.c	Thu Dec 23 17:17:52 1999
@@ -646,7 +646,7 @@
 	if (chptr->mode.limit)
 	    {
 		*mbuf++ = 'l';
-		if (IsMember(cptr, chptr) || IsServer(cptr))
+		if (ShowChannel(cptr, chptr) || IsServer(cptr))
 			SPRINTF(pbuf, "%d ", chptr->mode.limit);
 	    }
 	if (*chptr->mode.key)