From 71ac17464ab29d274ff209571f1017f044dac8eb Mon Sep 17 00:00:00 2001 From: Vincent Herbet Date: Sat, 3 Aug 2013 20:35:05 +0200 Subject: [PATCH] Add UTF-8 support in /top15 MOTD (bug 5825, r=me) Former-commit-id: ae91c6f5ade72b2c851eb1289423444e4a7d42e4 --- plugins/cstrike/statsx.sma | 2 +- plugins/dod/stats.sma | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/cstrike/statsx.sma b/plugins/cstrike/statsx.sma index ed4d2e09..9ecbd598 100755 --- a/plugins/cstrike/statsx.sma +++ b/plugins/cstrike/statsx.sma @@ -746,7 +746,7 @@ format_top15(sBuffer[MAX_BUFFER_LENGTH + 1]) ucfirst(lEff) ucfirst(lAcc) - iLen = format(sBuffer, MAX_BUFFER_LENGTH, "
")
+	iLen = format(sBuffer, MAX_BUFFER_LENGTH, "
")
 	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++)
diff --git a/plugins/dod/stats.sma b/plugins/dod/stats.sma
index 23ec8972..63f33a66 100755
--- a/plugins/dod/stats.sma
+++ b/plugins/dod/stats.sma
@@ -993,7 +993,7 @@ public cmdTop15(id) {
 getTop15_steam(id){
   new stats[9], body[8], name[32]
 
-  new pos = copy(g_Buffer,2047,"
")
+  new pos = copy(g_Buffer,2047,"
")
 
   pos += format(g_Buffer[pos],2047-pos,"",
 		id,"M_NICK",id,"M_KILLS",id,"M_DEATHS",id,"M_SCORE",id,"M_TKS",id,"M_HITS",id,"M_SHOTS",id,"M_HS")
#%L%L%L%L%L%L%L%L