Add UTF-8 support in /top15 MOTD (bug 5825, r=me)
Former-commit-id: ae91c6f5ade72b2c851eb1289423444e4a7d42e4
This commit is contained in:
parent
735160157c
commit
71ac17464a
|
@ -746,7 +746,7 @@ format_top15(sBuffer[MAX_BUFFER_LENGTH + 1])
|
||||||
ucfirst(lEff)
|
ucfirst(lEff)
|
||||||
ucfirst(lAcc)
|
ucfirst(lAcc)
|
||||||
|
|
||||||
iLen = format(sBuffer, MAX_BUFFER_LENGTH, "<body bgcolor=#000000><font color=#FFB000><pre>")
|
iLen = format(sBuffer, MAX_BUFFER_LENGTH, "<meta charset=utf-8><body bgcolor=#000000><font color=#FFB000><pre>")
|
||||||
iLen += format(sBuffer[iLen], MAX_BUFFER_LENGTH - iLen, "%2s %-22.22s %6s %6s %6s %6s %4s %4s %4s^n", "#", "Nick", lKills, lDeaths, lHits, lShots, "HS", lEff, lAcc)
|
iLen += format(sBuffer[iLen], MAX_BUFFER_LENGTH - iLen, "%2s %-22.22s %6s %6s %6s %6s %4s %4s %4s^n", "#", "Nick", lKills, lDeaths, lHits, lShots, "HS", lEff, lAcc)
|
||||||
|
|
||||||
for (new i = 0; i < iMax && MAX_BUFFER_LENGTH - iLen > 0; i++)
|
for (new i = 0; i < iMax && MAX_BUFFER_LENGTH - iLen > 0; i++)
|
||||||
|
|
|
@ -993,7 +993,7 @@ public cmdTop15(id) {
|
||||||
getTop15_steam(id){
|
getTop15_steam(id){
|
||||||
new stats[9], body[8], name[32]
|
new stats[9], body[8], name[32]
|
||||||
|
|
||||||
new pos = copy(g_Buffer,2047,"<html><head><style type=^"text/css^">pre{color:#FFB000;}body{background:Black;margin-left:8px;margin-top:0px;color:#FFB000;}</style></head><pre><body>")
|
new pos = copy(g_Buffer,2047,"<html><head><meta charset=utf-8><style type=^"text/css^">pre{color:#FFB000;}body{background:Black;margin-left:8px;margin-top:0px;color:#FFB000;}</style></head><pre><body>")
|
||||||
|
|
||||||
pos += format(g_Buffer[pos],2047-pos,"<table><tr><td>#</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td></tr>",
|
pos += format(g_Buffer[pos],2047-pos,"<table><tr><td>#</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td></tr>",
|
||||||
id,"M_NICK",id,"M_KILLS",id,"M_DEATHS",id,"M_SCORE",id,"M_TKS",id,"M_HITS",id,"M_SHOTS",id,"M_HS")
|
id,"M_NICK",id,"M_KILLS",id,"M_DEATHS",id,"M_SCORE",id,"M_TKS",id,"M_HITS",id,"M_SHOTS",id,"M_HS")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user