summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-07-09 16:24:17 +0200
committermathieui <mathieui@mathieui.net>2014-07-09 16:25:15 +0200
commitd790465d6d9ecc053349936bf09546eb72906d8d (patch)
tree0dbc44a7fb2d500f77850b911920002c59d9fe51
parentdc5e3b33f7cdc59b5eefcf8d1a1dccc4ac5e1bee (diff)
downloadpoezio-d790465d6d9ecc053349936bf09546eb72906d8d.tar.gz
poezio-d790465d6d9ecc053349936bf09546eb72906d8d.tar.bz2
poezio-d790465d6d9ecc053349936bf09546eb72906d8d.tar.xz
poezio-d790465d6d9ecc053349936bf09546eb72906d8d.zip
Fix #2520 (feedback on roster changes)
-rw-r--r--src/tabs/rostertab.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tabs/rostertab.py b/src/tabs/rostertab.py
index 35ede3be..3d01046b 100644
--- a/src/tabs/rostertab.py
+++ b/src/tabs/rostertab.py
@@ -378,6 +378,8 @@ class RosterInfoTab(Tab):
contact = roster[jid]
if contact:
contact.unauthorize()
+ self.core.information('Subscription to %s was revoked' % jid,
+ 'Roster')
def command_add(self, args):
"""
@@ -392,6 +394,7 @@ class RosterInfoTab(Tab):
return self.core.information('Already subscribed.', 'Roster')
roster.add(jid)
roster.modified()
+ self.core.information('%s was added to the roster' % jid, 'Roster')
def command_name(self, arg):
"""
@@ -720,6 +723,8 @@ class RosterInfoTab(Tab):
if contact.subscription in ('from', 'none') and not contact.pending_out:
self.core.xmpp.send_presence(pto=jid, ptype='subscribe', pnick=self.core.own_nick)
+ self.core.information('%s is now authorized' % jid, 'Roster')
+
def refresh(self):
if self.need_resize:
self.resize()