forked from TeamUlysses/ulx
[FIX] Bad format spacing on UTF names for ulx who and and ulx debuginfo (Thanks for the code, @toxsa).
This commit is contained in:
parent
18e38d2ef7
commit
9054f041d3
@ -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).
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user