diff options
author | mathieui <mathieui@mathieui.net> | 2013-03-11 23:06:52 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-03-11 23:06:52 +0100 |
commit | cec1151ecb577a270b9e1f0ae5eaa238d3269ae8 (patch) | |
tree | dad224100ca67d09301d6d2fc3d64b958b7acc54 /src/connection.py | |
parent | d2d04162146e6df454d67a4e48ee6655af1d6c0a (diff) | |
download | poezio-cec1151ecb577a270b9e1f0ae5eaa238d3269ae8.tar.gz poezio-cec1151ecb577a270b9e1f0ae5eaa238d3269ae8.tar.bz2 poezio-cec1151ecb577a270b9e1f0ae5eaa238d3269ae8.tar.xz poezio-cec1151ecb577a270b9e1f0ae5eaa238d3269ae8.zip |
Fix #1839 (User mood/activity)
- Added as always new theming variables:
CHAR_ROSTER_MOOD, CHAR_ROSTER_ACTIVITY (a SNOWMAN!)
COLOR_ROSTER_MOOD, COLOR_ROSTER_ACTIVITY
- Added two new notification types in Theme.INFO_COLORS (mood/activity)
- Added new configuration options:
display_mood/activity/tune_notifications (those can be set for a
specific JID)
enable_user_tune/nick/activity/mood
- Added /activity and /mood commands, with completions
- Moved the old /activity to /last_activity
- Details are show in the ContactInfoWin if there is room, or with "i"
on a contact in the roster.
Diffstat (limited to 'src/connection.py')
-rw-r--r-- | src/connection.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/connection.py b/src/connection.py index d5a393c5..8565a616 100644 --- a/src/connection.py +++ b/src/connection.py @@ -72,10 +72,18 @@ class Connection(sleekxmpp.ClientXMPP): self.register_plugin('xep_0115') self.register_plugin('xep_0191') - if config.get('receive_user_tune', 'true') != 'false': + if config.get('enable_user_tune', 'true') != 'false': self.register_plugin('xep_0118') - if config.get('use_pep_nick', 'true') != 'false': + + if config.get('enable_user_nick', 'true') != 'false': self.register_plugin('xep_0172') + + if config.get('enable_user_mood', 'true') != 'false': + self.register_plugin('xep_0107') + + if config.get('enable_user_activity', 'true') != 'false': + self.register_plugin('xep_0108') + if config.get('send_poezio_info', 'true') == 'true': info = {'name':'poezio', 'version': options.version} |