Merge pull request #64 from 39bit/master
Unicode support for length checking in /nick
This commit is contained in:
@ -33,7 +33,7 @@ function nick:action(msg)
|
||||
else
|
||||
output = target.name .. ' currently has no nickname.'
|
||||
end
|
||||
elseif string.len(input) > 32 then
|
||||
elseif utilities.utf8_len(input) > 32 then
|
||||
output = 'The character limit for nicknames is 32.'
|
||||
elseif input == '--' or input == utilities.char.em_dash then
|
||||
self.database.users[target.id_str].nickname = nil
|
||||
|
Reference in New Issue
Block a user