[#1221] misc bug fixes on backer.* doesn't exist in chat, default backer &

preference attrs in user model
This commit is contained in:
Tyler Renelle
2013-09-13 15:10:47 -04:00
parent 0d8e1f2043
commit dc303f83c1
3 changed files with 18 additions and 19 deletions

View File

@@ -89,6 +89,7 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A
}
$scope.nameTagClasses = function(message){
if (!message) return; // fixme what's triggering this?
if (message.contributor) {
if (message.contributor.match(/npc/i) || message.contributor.match(/royal/i)) {
return 'label-royal';