X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fwho.c;h=112487aaf05a275c022d0dfe1ac6ab4a7fe2c185;hb=9f0d926e9bb2845bf755773377792ac2269db3e0;hp=5bf70b1a8634659f0bdf2b218cea256a6fec0c52;hpb=1b3bdbd8c1417a9dcfd9a428520c2fd3b624f6bd;p=citadel.git diff --git a/webcit/who.c b/webcit/who.c index 5bf70b1a8..112487aaf 100644 --- a/webcit/who.c +++ b/webcit/who.c @@ -471,11 +471,11 @@ void WholistSubst(StrBuf *TemplBuffer, void *vContext) SVPutBuf("WHO:HOST", User->Host, 1); SVPutBuf("WHO:REALROOM", User->RealRoom, 1); SVPutBuf("WHO:REALHOST", User->RealHost, 1); - svprintf(HKEY("WHO:LASTACTIVE"), WCS_STRING, "%ld", User->LastActive); - svprintf(HKEY("WHO:SESSION"), WCS_STRING, "%d", User->Session); - svprintf(HKEY("WHO:IDLE"), WCS_STRING, "%s", (User->Idle)? "Idle":"Active"); - svprintf(HKEY("WHO:NSESSIONS"), WCS_STRING, "%d", User->SessionCount); - + svputlong("WHO:LASTACTIVE", User->LastActive); + svputlong("WHO:SESSION", User->Session); + svputlong("WHO:IDLE", User->Idle); + svputlong("WHO:NSESSIONS", User->SessionCount); + svputlong("WHO:ISME", (User->Session == WC->ctdl_pid)); } void DeleteWholistHash(HashList *KillMe)