Reduce attribute names length

This commit is contained in:
Philippe Proulx 2013-10-26 13:54:51 -04:00
commit ddf491e8f0
2 changed files with 14 additions and 14 deletions

View file

@ -195,16 +195,16 @@
WeeChatProtocol._attrNameFromChar = function(ch) {
var chars = {
// WeeChat protocol
'*': 'bold',
'!': 'reverse',
'/': 'italic',
'_': 'underline',
'*': 'b',
'!': 'r',
'/': 'i',
'_': 'u',
// some extension often used (IRC?)
'\x01': 'bold',
'\x02': 'reverse',
'\x03': 'italic',
'\x04': 'underline'
'\x01': 'b',
'\x02': 'r',
'\x03': 'i',
'\x04': 'u'
};
if (ch in chars) {