- Added slash command /details profile <profile name>

This commit is contained in:
Tercio
2015-04-09 21:14:59 -03:00
parent 08fec09ea9
commit 3358c483be
7 changed files with 75 additions and 51 deletions
+2 -2
View File
@@ -12,7 +12,7 @@
function _detalhes:GetCurrentProfileName()
--> check is have a profile name
if (_detalhes_database.active_profile == "") then
if (_detalhes_database.active_profile == "") then -- or not _detalhes_database.active_profile
local character_key = UnitName ("player") .. "-" .. GetRealmName()
_detalhes_database.active_profile = character_key
end
@@ -104,7 +104,7 @@ function _detalhes:GetProfile (name, create)
end
local profile = _detalhes_global.__profiles [name]
if (not profile and not create) then
return false