forked from TeamUlysses/ulx
Kick message + GM13 changes
Added a new function to the hook library to match Garry's API. Better deal with blank reasons when kicking users, fixes #13 (Thanks Cpt. David)
This commit is contained in:
parent
bc2c6ff2c4
commit
ae9f2d0996
@ -39,6 +39,7 @@ function ulx.kick( calling_ply, target_ply, reason )
|
||||
if reason and reason ~= "" then
|
||||
ulx.fancyLogAdmin( calling_ply, "#A kicked #T (#s)", target_ply, reason )
|
||||
else
|
||||
reason = nil
|
||||
ulx.fancyLogAdmin( calling_ply, "#A kicked #T", target_ply )
|
||||
end
|
||||
ULib.kick( target_ply, reason )
|
||||
|
Loading…
Reference in New Issue
Block a user