From 94a601fb3b67e72e075af28174094117cd09f5f2 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 2 Sep 2009 00:50:43 +0000 Subject: 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 --- src/commands/cmd_ison.cpp | 6 ------ src/commands/cmd_who.cpp | 4 ---- src/commands/cmd_whois.cpp | 7 ------- 3 files changed, 17 deletions(-) (limited to 'src/commands') 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& 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& 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 &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")) { -- cgit v1.2.3