Fix bug with logon messages

Amber Yust [05-03-14 - 05:26]
Fix bug with logon messages
Filename
BestFriends.lua
diff --git a/BestFriends.lua b/BestFriends.lua
index ad581b6..ad1a056 100644
--- a/BestFriends.lua
+++ b/BestFriends.lua
@@ -6,6 +6,7 @@ local function initialize(event, addonName)
         local isOnline = newStatus ~= PLAYER_STATUS_OFFLINE

         if not wasOnline and isOnline then
+            local link = ZO_LinkHandler_CreateDisplayNameLink(displayName)
             ZO_Alert(UI_ALERT_CATEGORY_ALERT, nil, zo_strformat(SI_FRIENDS_LIST_FRIEND_LOGGED_ON, link))
         elseif wasOnline and not isOnline then
             local link = ZO_LinkHandler_CreateDisplayNameLink(displayName)