Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0045.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 | 1d3f73e065e1 |
children | a543eda2c923 |
comparison
equal
deleted
inserted
replaced
2144:1d3f73e065e1 | 2145:33c8c4973743 |
---|---|
39 | 39 |
40 from zope.interface import implements | 40 from zope.interface import implements |
41 | 41 |
42 | 42 |
43 PLUGIN_INFO = { | 43 PLUGIN_INFO = { |
44 "name": "XEP-0045 Plugin", | 44 C.PI_NAME: "XEP-0045 Plugin", |
45 "import_name": "XEP-0045", | 45 C.PI_IMPORT_NAME: "XEP-0045", |
46 "type": "XEP", | 46 C.PI_TYPE: "XEP", |
47 "protocols": ["XEP-0045"], | 47 C.PI_PROTOCOLS: ["XEP-0045"], |
48 "dependencies": [], | 48 C.PI_DEPENDENCIES: [], |
49 "recommendations": [C.TEXT_CMDS], | 49 C.PI_RECOMMENDATIONS: [C.TEXT_CMDS], |
50 "main": "XEP_0045", | 50 C.PI_MAIN: "XEP_0045", |
51 "handler": "yes", | 51 C.PI_HANDLER: "yes", |
52 "description": _("""Implementation of Multi-User Chat""") | 52 C.PI_DESCRIPTION: _("""Implementation of Multi-User Chat""") |
53 } | 53 } |
54 | 54 |
55 NS_MUC = 'http://jabber.org/protocol/muc' | 55 NS_MUC = 'http://jabber.org/protocol/muc' |
56 AFFILIATIONS = ('owner', 'admin', 'member', 'none', 'outcast') | 56 AFFILIATIONS = ('owner', 'admin', 'member', 'none', 'outcast') |
57 ROOM_USER_JOINED = 'ROOM_USER_JOINED' | 57 ROOM_USER_JOINED = 'ROOM_USER_JOINED' |