comparison src/plugins/plugin_xep_0100.py @ 2145:33c8c4973743

core (plugins): added missing contants + use of new constants in PLUGIN_INFO
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 18:59:10 +0100
parents 2daf7b4c6756
children 8b37a62336c3
comparison
equal deleted inserted replaced
2144:1d3f73e065e1 2145:33c8c4973743
25 log = getLogger(__name__) 25 log = getLogger(__name__)
26 from twisted.words.protocols.jabber import jid 26 from twisted.words.protocols.jabber import jid
27 from twisted.internet import reactor, defer 27 from twisted.internet import reactor, defer
28 28
29 PLUGIN_INFO = { 29 PLUGIN_INFO = {
30 "name": "Gateways Plugin", 30 C.PI_NAME: "Gateways Plugin",
31 "import_name": "XEP-0100", 31 C.PI_IMPORT_NAME: "XEP-0100",
32 "type": "XEP", 32 C.PI_TYPE: "XEP",
33 "protocols": ["XEP-0100"], 33 C.PI_PROTOCOLS: ["XEP-0100"],
34 "dependencies": ["XEP-0077"], 34 C.PI_DEPENDENCIES: ["XEP-0077"],
35 "main": "XEP_0100", 35 C.PI_MAIN: "XEP_0100",
36 "description": _("""Implementation of Gateways protocol""") 36 C.PI_DESCRIPTION: _("""Implementation of Gateways protocol""")
37 } 37 }
38 38
39 WARNING_MSG = D_(u"""Be careful ! Gateways allow you to use an external IM (legacy IM), so you can see your contact as XMPP contacts. 39 WARNING_MSG = D_(u"""Be careful ! Gateways allow you to use an external IM (legacy IM), so you can see your contact as XMPP contacts.
40 But when you do this, all your messages go throught the external legacy IM server, it is a huge privacy issue (i.e.: all your messages throught the gateway can be monitored, recorded, analysed by the external server, most of time a private company).""") 40 But when you do this, all your messages go throught the external legacy IM server, it is a huge privacy issue (i.e.: all your messages throught the gateway can be monitored, recorded, analysed by the external server, most of time a private company).""")
41 41