Skip to content

Commit

Permalink
Merge pull request #233 from PeonUkor/225
Browse files Browse the repository at this point in the history
Fixes edge case for UnitName("player") #225
  • Loading branch information
Geigerkind committed Jul 1, 2019
2 parents 5097ee9 + 76063fd commit 58fd5a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DPSMate/DPSMate_Parser.lua
Expand Up @@ -493,7 +493,7 @@ local GetPlayerBuff = GetPlayerBuff
-- Begin Functions

function DPSMate.Parser:OnLoad()
self.player = UnitName("player")
self.player, self.realm = UnitName("player")
_,playerclass = UnitClass("player")
DPSMate.DB:BuildUser(self.player, strlower(playerclass))
DPSMateUser[self.player][2] = strlower(playerclass)
Expand Down
2 changes: 1 addition & 1 deletion DPSMate/DPSMate_Sync.lua
Expand Up @@ -4,7 +4,7 @@
-- Fails

-- Local Variables
local player = UnitName("player")
local player = (UnitName("player"))
local _, playerclass = UnitClass("player")
local pid = 0
local time, iterator, voteStarter = 0, 1, false
Expand Down

0 comments on commit 58fd5a4

Please sign in to comment.