summaryrefslogtreecommitdiff
path: root/src/connection.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-03-11 17:54:29 +0100
committermathieui <mathieui@mathieui.net>2013-03-11 17:54:29 +0100
commitd2d04162146e6df454d67a4e48ee6655af1d6c0a (patch)
treef0b132de550c62dfe4ac9fb59234ea14ecd1874a /src/connection.py
parent34af8f69c7aff2d02a10fab954ae7ddf15cee193 (diff)
downloadpoezio-d2d04162146e6df454d67a4e48ee6655af1d6c0a.tar.gz
poezio-d2d04162146e6df454d67a4e48ee6655af1d6c0a.tar.bz2
poezio-d2d04162146e6df454d67a4e48ee6655af1d6c0a.tar.xz
poezio-d2d04162146e6df454d67a4e48ee6655af1d6c0a.zip
Fix #1841 (User nickname)
- add a use_pep_nick boolean option - use it as a nickname for roster contacts, but it does not supercede the user-defined handle - send a <nick/> at the beginning of a normal chat - not implemented in MUC (wontfix)
Diffstat (limited to 'src/connection.py')
-rw-r--r--src/connection.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/connection.py b/src/connection.py
index 51fef78d..d5a393c5 100644
--- a/src/connection.py
+++ b/src/connection.py
@@ -74,6 +74,8 @@ class Connection(sleekxmpp.ClientXMPP):
if config.get('receive_user_tune', 'true') != 'false':
self.register_plugin('xep_0118')
+ if config.get('use_pep_nick', 'true') != 'false':
+ self.register_plugin('xep_0172')
if config.get('send_poezio_info', 'true') == 'true':
info = {'name':'poezio',
'version': options.version}