From fdb61cda2724f5cc79dedec4ecf041a92450216b Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 26 Dec 2016 16:00:18 +0100 Subject: Add missing message types (fix #3271) Which were being filtered by the information popup filter --- poezio/tabs/basetabs.py | 2 +- poezio/tabs/bookmarkstab.py | 1 - poezio/tabs/rostertab.py | 10 +++++----- 3 files changed, 6 insertions(+), 7 deletions(-) (limited to 'poezio/tabs') diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 02af159a..95846ef4 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -639,7 +639,7 @@ class ChatTab(Tab): self.core.command.help('correct') return if not self.last_sent_message: - self.core.information('There is no message to correct.') + self.core.information('There is no message to correct.', 'Error') return self.command_say(line, correct=True) diff --git a/poezio/tabs/bookmarkstab.py b/poezio/tabs/bookmarkstab.py index e11f8aba..cdb983bb 100644 --- a/poezio/tabs/bookmarkstab.py +++ b/poezio/tabs/bookmarkstab.py @@ -89,7 +89,6 @@ class BookmarksTab(Tab): self.core.information('Bookmarks saved.', 'Info') else: self.core.information('Remote bookmarks not saved.', 'Error') - log.debug('alerte %s', str(stanza_storage(self.bookmarks.bookmarks))) self.bookmarks.save(self.core.xmpp, callback=send_cb) self.core.close_tab(self) return True diff --git a/poezio/tabs/rostertab.py b/poezio/tabs/rostertab.py index 2d311012..2720bf7f 100644 --- a/poezio/tabs/rostertab.py +++ b/poezio/tabs/rostertab.py @@ -601,12 +601,12 @@ class RosterInfoTab(Tab): if isinstance(item, Contact): jid = item.bare_jid else: - self.core.information('No subscription to deny') + self.core.information('No subscription to deny', 'Warning') return else: jid = safeJID(args[0]).bare if not jid in [jid for jid in roster.jids()]: - self.core.information('No subscription to deny') + self.core.information('No subscription to deny', 'Warning') return contact = roster[jid] @@ -759,7 +759,7 @@ class RosterInfoTab(Tab): if iq: roster.update_contact_groups(contact) else: - self.core.information('The group could not be set') + self.core.information('The group could not be set', 'Error') log.debug('Error in groupmove:\n%s', iq) self.core.xmpp.update_roster(jid, name=name, groups=new_groups, @@ -819,7 +819,7 @@ class RosterInfoTab(Tab): if isinstance(item, Contact): jid = item.bare_jid else: - self.core.information('No roster item to remove') + self.core.information('No roster item to remove', 'Error') return roster.remove(jid) del roster[jid] @@ -955,7 +955,7 @@ class RosterInfoTab(Tab): if isinstance(item, Contact): jid = item.bare_jid else: - self.core.information('No subscription to accept') + self.core.information('No subscription to accept', 'Warning') return else: jid = safeJID(args[0]).bare -- cgit v1.2.3