Commit graph libervia-backend/src/plugins/plugin_xep_0045.py
Author SHA1 Message Date
Goffi
d454d9a66e plugin XEP-0045: profileConnected return the deferred, so muc service presence is checked before the end of initialisation 2014-03-31 12:23:13 +02:00
Goffi
95678d7967 core, plugin XEP-0115: discovery refactoring:
- hashing algorithm of XEP-0115 has been including in core
    - our own hash is still calculated by XEP-0115 and can be regenerated with XEP_0115.recalculateHash
    - old discovery methods have been removed. Now the following methods are used:
        - hasFeature: tell if a feature is available for an entity
        - getDiscoInfos: self explaining
        - getDiscoItems: self explaining
        - findServiceEntities: return all available items of an entity which given (category, type)
        - findFeaturesSet: search for a set of features in entity + entity's items
      all these methods are asynchronous, and manage cache automatically
    - XEP-0115 manage in a better way hashes, and now use a trigger for presence instead of monkey patch
    - new FeatureNotFound exception, when we want to do something which is not available
    - refactored client initialisation sequence, removed client.initialized Deferred
    - added constant APP_URL
    - test_plugin_xep_0033.py has been temporarly deactivated, the time to adapt it
    - lot of cleaning
2014-03-28 18:07:22 +01:00
Goffi
b826dd7c10 plugin XEP-0045: added user information to /whois text command 2014-03-24 14:46:18 +01:00
Goffi
8a52f6defa plugin text commands: refactoring, text now only contain main commands, and other plugin can add commands themselve:
- registerTextCommands can be called by a plugin in its __init__ method, it looks for methods starting with "cmd_" and register them as new commands
    - addWhoIsCb: add a callback to /whois command, the callback can complete whois informations
    - plugins parrot, XEP-0045 and XEP-0092 now manage their own commands
2014-03-24 10:57:15 +01:00
Goffi
005ec59a8a core: use of Const for profile_key + replaced '@DEFAULT@' default profile_key by '@NONE@' 2014-03-21 16:27:09 +01:00
Goffi
2ca6efd8cc dates update 2014-02-04 18:32:49 +01:00
Goffi
72fd99f679 plugin XEP-0045, primitivus: added MUC configuration 2014-02-04 18:06:12 +01:00
souliane
f2503f89ae plugins room games, XEP-0045: small fixes, improved docstrings 2014-01-10 18:07:36 +01:00
Goffi
5a00dc9503 core: i18n refactoring:
- _() is no more installed in __builtin__
    - instead, there is a new sat.core.i18n module
    - added D_() method for deferred translation
    - languageSwitch method allow to dynamically change translation language
    - import gettext is tested against ImportError, and dummy methods are used when not available (mainly useful for Libervia)
2013-12-29 17:06:01 +01:00
souliane
89c2519ae7 plugin XEP-0045: remove redondant errback from _join 2013-11-28 21:27:18 +01:00
souliane
718bb98300 plugin XEP-0033: implementation of the addressing feature:
- frontends pass the recipients in the extra parameter of sendMessage
    - backend checks if the target server supports the feature (this is not done yet by prosody plugin)
    - features and identities are cached per profile and server
    - messages are duplicated in history for now (TODO: redesign the database)
    - echos signals are also duplicated to the sender (FIXME)
2013-12-11 17:16:53 +01:00
souliane
b037678f13 plugins XEP-0045: added methods to get room nicks and "MUC user left" trigger 2013-11-19 19:31:59 +01:00
souliane
4ef842a213 plugin XEP-0045: fixed incorrect exceptions name 2013-11-17 17:02:22 +01:00
souliane
8190f82caf plugins (MUC, tools, games): generalize the generation of a unique room name when joining a MUC and no room is specified:
- method to get the MUC service moved to plugin_xep_0045
- joinMUC returns the muc name (given by user or generated)
- getUniqueName can receive a specified service in argument
2013-11-17 16:59:12 +01:00
Goffi
1cd98e8dea fixed licences in docstrings (they are now in comments) 2013-03-08 00:36:22 +01:00
Goffi
b9cd83ac51 plugin XEP-0045: fixed isNickInRoom 2013-02-20 20:36:09 +01:00
Goffi
f2de1c7c85 plugin XEP-0045: fixed mucLeave bridge method 2013-01-26 00:30:00 +01:00
Emmanuel Gil Peyrot
0dca274360 Fix pep8 support in src/plugins. 2013-01-18 17:55:35 +01:00
Emmanuel Gil Peyrot
88074cd284 Remove every old-style class. 2013-01-18 17:55:35 +01:00
Emmanuel Gil Peyrot
27b3592e16 Remove trailing whitespaces. 2013-01-18 17:55:34 +01:00
Goffi
def79e44cd dates update 2013-01-07 23:30:13 +01:00
Goffi
ef6dbda917 plugin XEP-0045: in case of nickname conflict when entering a room, a new one is automaticaly assigned 2012-10-21 22:31:57 +02:00
Goffi
53aefedcfa plugin XEP-0045: added isNickInRoom method 2012-10-21 13:36:28 +02:00
Goffi
72da42f762 reverted bad commit 2012-10-21 12:55:27 +02:00
Goffi
031bd3134f primitivus: fixed messages order in chat window 2012-10-21 12:03:29 +02:00
Goffi
902045e174 plugin XEP-0045, plugin text commands: added '/title' command 2012-10-20 18:02:14 +02:00
Goffi
4225b694d0 plugin text commands: added /join command 2012-09-28 00:48:52 +02:00
Goffi
c520325941 frontends, core, plugin XEP-0045: leave implementation + better nick change
- memory: individual entity cache can be deleted
	- plugin XEP-0045: nick change are now detected and userChangedNick signal is sent instead of joined/left
	- plugin XEP-0045: leave implementation
	- frontends: userChangedNick signal management
	- Primitivus: an alert is shown in notification bar in case of error in sendMessage
2012-09-28 00:26:24 +02:00
Goffi
58f2410945 plugin xep-0045: nick change management 2012-09-27 00:51:43 +02:00
Goffi
df74d5f15e plugin xep-0045: entity type is changer to chatroom for room joined 2012-08-17 03:08:37 +02:00
Goffi
c5a930b627 Licence modification: the full project is now under AGPL v3+ instead of GPL v3+ 2012-08-01 22:53:02 +02:00
Goffi
21dbb4473a copyleft date update 2012-03-06 09:07:24 +01:00
Goffi
37cc866092 plugin XEP-0045: room unlocking fix 2012-01-22 19:40:04 +01:00
Goffi
7bc805234a plugin xep-0045: fixed missing return deferred 2012-01-05 00:42:24 +01:00
Goffi
1d9e3b4fb2 plugins: radio collective first draft 2012-01-05 00:21:30 +01:00
Goffi
ff83e93f4b plugin XEP-0045: typo fix 2011-10-08 20:26:36 +02:00
Goffi
f6782ba2e1 plugin XEP-0045: fix method call 2011-10-08 19:13:43 +02:00
Goffi
c4f168940c plugin XEP-0045: send error on invalid room jid on _join 2011-10-08 19:04:28 +02:00
Goffi
b7b7c60e33 MUC update to follow wokkel's MUC branch update
- bridge methods have been updated (API change)
- plugin XEP-0045 has been updated
2011-10-08 18:43:17 +02:00
Goffi
ad29111416 core: plugins refactored according to bridge + updatedValue now use profile 2011-07-06 01:06:18 +02:00
Goffi
aeca822130 plugin XEP-0045: added error callback to join's deferred, and a callback is created if join fail before calling MUCClient's join 2011-05-31 17:08:20 +02:00
Goffi
f61f83dfea plugin xep-0045: misc improvments
- added getUniqueRoomName method to create a room with no name conflict (need improvment)
- if the room is new, the basic configuration is used to create it
- _join is now used for bridge, and join can be used if we need the deferred
- a trigger is added when a user join a room ("MUC user joined")
2011-05-06 15:38:32 +02:00
Goffi
27274bfda0 plugins: fixed bad import names 2011-02-06 23:49:27 +01:00
Goffi
37b43f891b removed old useless code 2011-02-01 23:10:41 +01:00
Goffi
02509cdeb1 2011 copyright upgrade 2011-01-05 18:52:38 +01:00
Goffi
e4452c4b03 Files reorganisation 2010-12-29 01:06:29 +01:00
Renamed from plugins/plugin_xep_0045.py (Browse further)