       content: "You are now #{e.d}"
       img:      atom.config.get 'aTox.userAvatar'
     }
-
-    @event.emit  'Terminal', {cid: -2, msg: "You are now #{e.d}"} #TODO: Send this to all chat windows
+    color = @getColorByStatus(e.d)
+    @event.emit  'Terminal', {cid: -2, msg: "You are now <span style='color:#{color}'>#{e.d}</span>"} #TODO: Send this to all chat windows
+
+  getColorByStatus: (status) ->
+    console.log status
+    if status is "online"
+      return "rgba(50, 255, 50, 1)"
+    else if status is "offline"
+      return "rgba(80, 80, 80, 1)"
+    else if status is "busy"
+      return "rgba(255, 50, 50, 1)"
+    else if status is "away"
+      return "rgba(255, 255, 50, 1)"
 
   friendAutoremove: (params) ->
     return @friendOnline[params.fid] = 0 if params.online is true

    }

  groupInviteCB: (e) ->
    @inf "Recieved group invite from #{e.friend()}"

    try
      ret = @TOX.joinGroupchatSync e.friend(), e.data()

    try
      ret = @TOX.addGroupchatSync()
    catch e
      return @err "Failed to add group chat"

    @inf "Added group chat #{ret}"

