From 832e4d6003d48a07a727921fcbaf13ea777356b2 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 9 May 2007 21:26:12 +0000 Subject: If we're having local, we need far too (f) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6929 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_who.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index 097059498..5992d7aa0 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -46,6 +46,8 @@ bool cmd_who::whomatch(userrec* user, const char* matchtext) if (opt_local && !IS_LOCAL(user)) return false; + else if (opt_far && IS_LOCAL(user)) + return false; if (opt_mode) { @@ -178,6 +180,7 @@ CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *user) opt_port = false; opt_away = false; opt_local = false; + opt_far = false; chanrec *ch = NULL; std::vector whoresults; @@ -231,6 +234,9 @@ CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *user) case 'l': opt_local = true; break; + case 'f': + opt_far = true; + break; } *iter++; -- cgit v1.2.3