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

Topic requests



Ok, I'm almost certain this has probably been covered in the past, so
I'm just curious if there is any reason for being unable to query the
topic on a channel that I'm not a member of. I know that /list #channel
will achieve the desired result, but this is not quite as intuitive as
using /topic #channel.

Anyway - annoying little diff file follows... :)

Wull@IRCnet.
--- channel.c	Fri Aug 13 18:30:16 1999
+++ channel.c.topic	Tue Sep 14 22:41:20 1999
@@ -2704,7 +2704,8 @@
 		if (parc > 1 && IsChannelName(name))
 		    {
 			chptr = find_channel(name, NullChn);
-			if (!chptr || !IsMember(sptr, chptr))
+			if (!chptr || ((parc == 2) && !PubChannel(chptr)) ||
+					((parc > 2) && !IsMember(sptr, chptr)))
 			    {
 				sendto_one(sptr, err_str(ERR_NOTONCHANNEL,
 					   parv[0]), name);