Add UTF-8 support in /top15 MOTD (bug 5825, r=me)

Former-commit-id: ae91c6f5ade72b2c851eb1289423444e4a7d42e4
This commit is contained in:
Vincent Herbet
2013-08-03 20:35:05 +02:00
parent 735160157c
commit 71ac17464a
2 changed files with 2 additions and 2 deletions

View File

@ -993,7 +993,7 @@ public cmdTop15(id) {
getTop15_steam(id){
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>",
id,"M_NICK",id,"M_KILLS",id,"M_DEATHS",id,"M_SCORE",id,"M_TKS",id,"M_HITS",id,"M_SHOTS",id,"M_HS")