[FIX] Bad format spacing on UTF names for ulx who and and ulx debuginfo (Thanks for the code, @toxsa).

This commit is contained in:
Nayruden 2017-03-05 08:22:47 -06:00
parent 18e38d2ef7
commit 9054f041d3
3 changed files with 4 additions and 3 deletions

View File

@ -7,6 +7,7 @@
* [FIX] More fixes for reading data from addon information (Thanks, Xylios).
* [FIX] Server error when autorefreshing some XGUI server files (Thanks, Yupi2).
* [FIX] Unexpected tags passed along in a log input (Thanks, mcNuggets1).
* [FIX] Bad format spacing on UTF names for ulx who and and ulx debuginfo (Thanks for the code, toxsa).
## v3.71 - *(05/22/16)*
* [FIX] Reading information from corrupted addons (Thanks, Jindego).

View File

@ -8,8 +8,8 @@ function ulx.who( calling_ply, steamid )
local players = player.GetAll()
for _, player in ipairs( players ) do
local id = tostring( player:UserID() )
local nick = player:Nick()
local text = string.format( "%i%s %s%s ", id, string.rep( " ", 2 - id:len() ), nick, string.rep( " ", 31 - nick:len() ) )
local nick = utf8.force( ply:Nick() )
local text = string.format( "%i%s %s%s ", id, string.rep( " ", 2 - id:len() ), nick, string.rep( " ", 31 - utf8.len( nick ) )
text = text .. player:GetUserGroup()

View File

@ -1 +1 @@
1485704693
1488723767