\r
return display;\r
},\r
-\r
-\r
+ getMemberMask: function () {\r
+ // Why to use %N and %H is quite clear here. %J is because %I is already for italic and %U for underlines. Better ideas ?\r
+ return {'%N': this.get('nick'), '%J': this.get("ident"), '%H': this.get("hostname")};\r
+ },\r
- isOp: function () {\r
- var user_prefixes = _kiwi.gateway.get('user_prefixes'),\r
+ /**\r
+ * With the modes set on the user, make note if we have some sort of op status\r
+ */\r
+ updateOpStatus: function () {\r
+ var user_prefixes = this.get('user_prefixes'),\r
modes = this.get('modes'),\r
o, max_mode;\r
+ \r
if (modes.length > 0) {\r
o = _.indexOf(user_prefixes, _.find(user_prefixes, function (prefix) {\r
return prefix.mode === 'o';\r