]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_who.cpp
Fix a ton of -Wsign-conversion warnings.
[user/henk/code/inspircd.git] / src / coremods / core_who.cpp
index 196bf0479181da4a4bc4249b0ce3457a24d033de..ba1883e77a1beebbf3242924f3aa5f6c79dc171d 100644 (file)
@@ -146,10 +146,10 @@ bool CommandWho::whomatch(User* cuser, User* user, const char* matchtext)
                        match = InspIRCd::Match(user->awaymsg, matchtext);
                else if (opt_time)
                {
-                       long seconds = InspIRCd::Duration(matchtext);
+                       time_t seconds = ServerInstance->Time() - InspIRCd::Duration(matchtext);
 
                        // Okay, so time matching, we want all users connected `seconds' ago
-                       if (user->signon >= ServerInstance->Time() - seconds)
+                       if (user->signon >= seconds)
                                match = true;
                }