1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 18:43:13 +02:00

Fixed a /list bug with +s channels and opers

This commit is contained in:
codemastr
2003-03-08 17:41:04 +00:00
parent 853c27be84
commit f5baa63cce
2 changed files with 5 additions and 6 deletions
+2
View File
@@ -1962,3 +1962,5 @@ seen. gmtime warning still there
- Fixed a buffer overflow that could be used against setuid setups,
found by rave@dtors.net, reported by kokanin
- Disabled CMDLINE_CONFIG(-f) by default
- Fixed a bug in /list where opers could not see +s channels when doing /list #channel.
Reported by _SciFi_ (#0000762)
+3 -6
View File
@@ -4223,7 +4223,7 @@ CMD_FUNC(m_list)
else /* Just a normal channel */
{
chptr = find_channel(name, NullChn);
if (chptr && ShowChannel(sptr, chptr)) {
if (chptr && (ShowChannel(sptr, chptr) || IsAnOper(sptr))) {
#ifdef LIST_SHOW_MODES
modebuf[0] = '[';
channel_modes(sptr, &modebuf[1], parabuf, chptr);
@@ -4235,12 +4235,9 @@ CMD_FUNC(m_list)
sendto_one(sptr,
rpl_str(RPL_LIST),
me.name, parv[0],
ShowChannel(sptr,
chptr) ? name : "*",
chptr->users,
name, chptr->users,
#ifdef LIST_SHOW_MODES
ShowChannel(sptr, chptr) ?
modebuf : "",
modebuf,
#endif
(chptr->topic ? chptr->topic :
""));