diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:50:43 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-02 00:50:43 +0000 |
commit | 94a601fb3b67e72e075af28174094117cd09f5f2 (patch) | |
tree | c667c935abf679c40ca25d5e960ddc497bdedd07 /src/commands | |
parent | c32734fb23bb7c811076d1f4acc819020533e89c (diff) |
Rip out VisData in preparation for replacing it with more flexible hooks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11640 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/cmd_ison.cpp | 6 | ||||
-rw-r--r-- | src/commands/cmd_who.cpp | 4 | ||||
-rw-r--r-- | src/commands/cmd_whois.cpp | 7 |
3 files changed, 0 insertions, 17 deletions
diff --git a/src/commands/cmd_ison.cpp b/src/commands/cmd_ison.cpp index 423535da3..52fbcde4b 100644 --- a/src/commands/cmd_ison.cpp +++ b/src/commands/cmd_ison.cpp @@ -35,9 +35,6 @@ CmdResult CommandIson::Handle (const std::vector<std::string>& parameters, User if (u) { - if (u->Visibility && !u->Visibility->VisibleTo(user)) - continue; - reply.append(u->nick).append(" "); if (reply.length() > 450) { @@ -63,9 +60,6 @@ CmdResult CommandIson::Handle (const std::vector<std::string>& parameters, User if (u) { - if (u->Visibility && !u->Visibility->VisibleTo(user)) - continue; - reply.append(u->nick).append(" "); if (reply.length() > 450) { diff --git a/src/commands/cmd_who.cpp b/src/commands/cmd_who.cpp index 9e14ecb45..489c668c0 100644 --- a/src/commands/cmd_who.cpp +++ b/src/commands/cmd_who.cpp @@ -147,10 +147,6 @@ bool CommandWho::CanView(Channel* chan, User* user) void CommandWho::SendWhoLine(User* user, const std::string &initial, Channel* ch, User* u, std::vector<std::string> &whoresults) { - /* Not visible to this user */ - if (u->Visibility && !u->Visibility->VisibleTo(user)) - return; - const std::string& lcn = get_first_visible_channel(u); Channel* chlast = ServerInstance->FindChan(lcn); diff --git a/src/commands/cmd_whois.cpp b/src/commands/cmd_whois.cpp index c58f88f80..b2f322351 100644 --- a/src/commands/cmd_whois.cpp +++ b/src/commands/cmd_whois.cpp @@ -17,13 +17,6 @@ void do_whois(InspIRCd* ServerInstance, User* user, User* dest,unsigned long signon, unsigned long idle, const char* nick) { - if ((dest->Visibility && !dest->Visibility->VisibleTo(user)) || dest->registered != REG_ALL) - { - ServerInstance->SendWhoisLine(user, dest, 401, "%s %s :No such nick/channel",user->nick.c_str(), *nick ? nick : "*"); - ServerInstance->SendWhoisLine(user, dest, 318, "%s %s :End of /WHOIS list.",user->nick.c_str(), *nick ? nick : "*"); - return; - } - ServerInstance->SendWhoisLine(user, dest, 311, "%s %s %s %s * :%s",user->nick.c_str(), dest->nick.c_str(), dest->ident.c_str(), dest->dhost.c_str(), dest->fullname.c_str()); if (user == dest || user->HasPrivPermission("users/auspex")) { |