comparison frontends/src/constants.py @ 1119:5968fd8d2248

primitivus: change behavior of commands ":presence" and ":status" : - ":presence " and ":status " open a dialog (like if you type it without the trailing space) - you need to type ":presence online" to directly reset your presence (was done with ":presence " before) - there's no more way to directly set an empty status (you now do it via the dialog)
author souliane <souliane@mailoo.org>
date Sat, 23 Aug 2014 20:11:37 +0200
parents e2e1e27a3680
children faa1129559b8
comparison
equal deleted inserted replaced
1118:b1cb1d70bea9 1119:5968fd8d2248
38 try: 38 try:
39 presence = OrderedDict([("", _("Online")), 39 presence = OrderedDict([("", _("Online")),
40 ("chat", _("Free for chat")), 40 ("chat", _("Free for chat")),
41 ("away", _("Away from keyboard")), 41 ("away", _("Away from keyboard")),
42 ("dnd", _("Do not disturb")), 42 ("dnd", _("Do not disturb")),
43 ("xa", _("Away"))]) 43 ("xa", _("Extended away"))])
44 except TypeError: 44 except TypeError:
45 presence = {"": _("Online"), 45 presence = {"": _("Online"),
46 "chat": _("Free for chat"), 46 "chat": _("Free for chat"),
47 "away": _("Away from keyboard"), 47 "away": _("Away from keyboard"),
48 "dnd": _("Do not disturb"), 48 "dnd": _("Do not disturb"),
49 "xa": _("Away") 49 "xa": _("Extended away")
50 } 50 }
51 return presence 51 return presence
52 52
53 53
54 class Const(constants.Const): 54 class Const(constants.Const):