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:
Nayruden 2012-10-07 19:02:50 -04:00
parent bc2c6ff2c4
commit ae9f2d0996

View File

@ -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 )