X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcoremods%2Fcore_whois.cpp;h=7464e052753cad86ab0235389e32ad137d212d64;hb=43b5073d6f80a8dcb7044ecd127fd5893da033ab;hp=8fce7d33948fc0d927575a3b91c51f6f13d5746a;hpb=f62654a6859998f9d63eb22702c572d5ebcff15c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/coremods/core_whois.cpp b/src/coremods/core_whois.cpp index 8fce7d339..7464e0527 100644 --- a/src/coremods/core_whois.cpp +++ b/src/coremods/core_whois.cpp @@ -96,7 +96,7 @@ void CommandWhois::SplitChanList(User* source, User* dest, const std::string& cl line = prefix.str(); } - line.append(cl.substr(start, pos - start + 1)); + line.append(cl, start, pos - start + 1); } if (line.length() != prefix.str().length()) @@ -224,7 +224,7 @@ CmdResult CommandWhois::HandleLocal(const std::vector& parameters, LocalUser* localuser = IS_LOCAL(dest); if (localuser && (ServerInstance->Config->HideWhoisServer.empty() || parameters.size() > 1)) { - idle = abs((long)((localuser->idle_lastmsg)-ServerInstance->Time())); + idle = labs((long)((localuser->idle_lastmsg)-ServerInstance->Time())); signon = dest->signon; }