Skip to content

Commit

Permalink
Tie settings in mode and whowas to privs.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10675 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
rburchell committed Oct 18, 2008
1 parent a578f50 commit 4354774
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/commands/cmd_whowas.cpp
Expand Up @@ -65,10 +65,10 @@ CmdResult CommandWhowas::Handle (const std::vector<std::string>& parameters, Use

user->WriteNumeric(314, "%s %s %s %s * :%s",user->nick.c_str(),parameters[0].c_str(),u->ident,u->dhost,u->gecos);

if (IS_OPER(user))
if (user->HasPrivPermission("users/auspex"))
user->WriteNumeric(379, "%s %s :was connecting from *@%s", user->nick.c_str(), parameters[0].c_str(), u->host);

if (*ServerInstance->Config->HideWhoisServer && !IS_OPER(user))
if (*ServerInstance->Config->HideWhoisServer && !user->HasPrivPermission("servers/auspex"))
user->WriteNumeric(312, "%s %s %s :%s",user->nick.c_str(),parameters[0].c_str(), ServerInstance->Config->HideWhoisServer, b);
else
user->WriteNumeric(312, "%s %s %s :%s",user->nick.c_str(),parameters[0].c_str(), u->server, b);
Expand Down
4 changes: 2 additions & 2 deletions src/mode.cpp
Expand Up @@ -341,7 +341,7 @@ void ModeParser::DisplayCurrentModes(User *user, User* targetuser, Channel* targ
return;
}

if ((targetuser == user) || (IS_OPER(user)))
if (targetuser == user || user->HasPrivPermission("users/auspex"))
{
/* Display user's current mode string */
user->WriteNumeric(RPL_UMODEIS, "%s :+%s",targetuser->nick.c_str(),targetuser->FormatModes());
Expand Down Expand Up @@ -419,7 +419,7 @@ void ModeParser::Process(const std::vector<std::string>& parameters, User *user,
continue;
}

if (!IS_OPER(user))
if (!user->HasPrivPermission("channels/auspex"))
{
if (ServerInstance->Config->HideModeLists[mletter] && (targetchannel->GetStatus(user) < STATUS_HOP))
{
Expand Down

0 comments on commit 4354774

Please sign in to comment.