summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-09 21:26:12 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-09 21:26:12 +0000
commit832e4d6003d48a07a727921fcbaf13ea777356b2 (patch)
treefc9e75972e2a2f5a7fc6f39f4a82fc07218312a1 /src
parentd0bde383434a9a88fc2737da8f8ca92e98d4c967 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/cmd_who.cpp6
1 files changed, 6 insertions, 0 deletions
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<std::string> 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++;