- Documentation
- Server functions
- getBanReason
Function
getBanReason
Returns the ban reason.
Syntax
string getBanReason(ban ban)Arguments
banban- The ban handle.
Returns
The reason, or false if none was given.
Example
addCommandHandler("bany", function(admin)
for i, ban in ipairs(getBans()) do
outputChatBox(i .. ". " .. tostring(getBanNick(ban)) .. ": " .. (getBanReason(ban) or "bez powodu"), admin)
end
end, true)