From caf6e98ccb76ff497b52a9646500d224a02860bf Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 6 Apr 2011 17:30:50 +0200 Subject: [PATCH] fixed server crash on "bans" command --- src/engine/server/server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/server/server.cpp b/src/engine/server/server.cpp index 9395ad792..16f950eaf 100644 --- a/src/engine/server/server.cpp +++ b/src/engine/server/server.cpp @@ -1395,12 +1395,12 @@ void CServer::ConBans(IConsole::IResult *pResult, void *pUser) if(Info.m_Expires == -1) { - str_format(aBuf, sizeof(aBuf), "#%s for life", i, aAddrStr); + str_format(aBuf, sizeof(aBuf), "#%i %s for life", i, aAddrStr); } else { unsigned t = Info.m_Expires - Now; - str_format(aBuf, sizeof(aBuf), "#%s for %d minutes and %d seconds", i, aAddrStr, t/60, t%60); + str_format(aBuf, sizeof(aBuf), "#%i %s for %d minutes and %d seconds", i, aAddrStr, t/60, t%60); } pServer->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "Server", aBuf); }