diff options
Diffstat (limited to 'src/cmd_who.cpp')
-rw-r--r-- | src/cmd_who.cpp | 6 |
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++; |