summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands/cmd_who.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/commands/cmd_who.cpp b/src/commands/cmd_who.cpp
index 561981df1..1ce4e4c28 100644
--- a/src/commands/cmd_who.cpp
+++ b/src/commands/cmd_who.cpp
@@ -89,7 +89,14 @@ bool CommandWho::whomatch(User* user, const char* matchtext)
}
else if (opt_away)
match = InspIRCd::Match(user->awaymsg, matchtext, lowermap);
+ else if (opt_time)
+ {
+ long seconds = ServerInstance->Duration(matchtext);
+ // Okay, so time matching, we want all users connected `seconds' ago
+ if (user->age >= ServerInstance->Time() - seconds)
+ match = true;
+ }
/*
* Once the conditionals have been checked, only check dhost/nick/server