X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fserver%2Fserver.c;h=315b12987f78768edbad34da98f8f9689a7824f6;hb=10fc79a2f4f72165cb1ce1ba78c84faa8d56f5db;hp=46cb4c6d4bde1384bc5f3dd465b235ce9a0ec9de;hpb=90744b9f8d74ec10843c6b7fe8ca035184d13b94;p=tpg%2Fopendispense2.git diff --git a/src/server/server.c b/src/server/server.c index 46cb4c6..315b129 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -1031,13 +1031,14 @@ void Server_Cmd_USERINFO(tClient *Client, char *Args) space = strchr(user, ' '); if(space) *space = '\0'; - if( giDebugLevel ) - Debug(Client, "User Info '%s'", user); + if( giDebugLevel ) Debug(Client, "User Info '%s'", user); // Get recipient uid = Bank_GetAcctByName(user); + + if( giDebugLevel >= 2 ) Debug(Client, "uid = %i", uid); if( uid == -1 ) { - sendf(Client->Socket, "404 Invalid user"); + sendf(Client->Socket, "404 Invalid user\n"); return ; } @@ -1160,9 +1161,10 @@ void Server_Cmd_USERFLAGS(tClient *Client, char *Args) void Debug(tClient *Client, const char *Format, ...) { va_list args; - printf("%010i [%i] ", (int)time(NULL), Client->ID); + //printf("%010i [%i] ", (int)time(NULL), Client->ID); + printf("[%i] ", Client->ID); va_start(args, Format); - vprintf(NULL, 0, Format, args); + vprintf(Format, args); va_end(args); printf("\n"); }