mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
m_namedmodes Only show chan key to members and opers with channels/auspex
This commit is contained in:
parent
c6c61719b5
commit
09186df9f8
@ -33,7 +33,12 @@ static void DisplayList(User* user, Channel* channel)
|
||||
continue;
|
||||
items << " +" << mh->name;
|
||||
if (mh->GetNumParams(true))
|
||||
items << " " << channel->GetModeParameter(letter);
|
||||
{
|
||||
if ((letter == 'k') && (!channel->HasUser(user)) && (!user->HasPrivPermission("channels/auspex")))
|
||||
items << " <key>";
|
||||
else
|
||||
items << " " << channel->GetModeParameter(letter);
|
||||
}
|
||||
}
|
||||
char pfx[MAXBUF];
|
||||
snprintf(pfx, MAXBUF, ":%s 961 %s %s", ServerInstance->Config->ServerName.c_str(), user->nick.c_str(), channel->name.c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user