diff options
author | mathieui <mathieui@mathieui.net> | 2012-08-02 01:09:10 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-08-02 01:09:10 +0200 |
commit | 18074c3c234aa240b9ab780fe31ff4b650405e45 (patch) | |
tree | f6e0eafdde02adbfa77069443fac35221cb0186f /src/connection.py | |
parent | 0cb39b32a4ee3a2f86f6db6d2354836bcf68a33e (diff) | |
download | poezio-18074c3c234aa240b9ab780fe31ff4b650405e45.tar.gz poezio-18074c3c234aa240b9ab780fe31ff4b650405e45.tar.bz2 poezio-18074c3c234aa240b9ab780fe31ff4b650405e45.tar.xz poezio-18074c3c234aa240b9ab780fe31ff4b650405e45.zip |
Add simple communication blocking (Fixes #1837)
- Add /block, /unblock, and /list_blocks commands
- Enable the commands only if the server advertises the feature
- http://xmpp.org/extensions/xep-0191.html#example-9 was not tested, but
should work (could not find a server to test with)
- Add documentation for the commands
Diffstat (limited to 'src/connection.py')
-rw-r--r-- | src/connection.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/connection.py b/src/connection.py index f4db0816..dc4b170a 100644 --- a/src/connection.py +++ b/src/connection.py @@ -60,6 +60,7 @@ class Connection(sleekxmpp.ClientXMPP): self.register_plugin('xep_0048') self.register_plugin('xep_0071') self.register_plugin('xep_0085') + self.register_plugin('xep_0191') if config.get('send_poezio_info', 'true') == 'true': info = {'name':'poezio', 'version':'0.8-dev'} |