Add missing message types (fix #3271)
Which were being filtered by the information popup filter
This commit is contained in:
parent
2243687c44
commit
fdb61cda27
6 changed files with 10 additions and 11 deletions
|
@ -65,10 +65,10 @@ class Plugin(BasePlugin):
|
|||
result = process.communicate()[0].decode('utf-8')
|
||||
if arg and arg == '-o':
|
||||
if not self.api.send_message('%s' % (result,)):
|
||||
self.api.information('Cannot send result (%s), this is not a conversation tab' % result)
|
||||
self.api.information('Cannot send result (%s), this is not a conversation tab' % result, 'Error')
|
||||
elif arg and arg == '-O':
|
||||
if not self.api.send_message('%s:\n%s' % (command, result)):
|
||||
self.api.information('Cannot send result (%s), this is not a conversation tab' % result)
|
||||
self.api.information('Cannot send result (%s), this is not a conversation tab' % result, 'Error')
|
||||
else:
|
||||
self.api.information('%s:\n%s' % (command, result), 'Info')
|
||||
return
|
||||
|
|
|
@ -81,7 +81,7 @@ class SafetyMetaclass(type):
|
|||
raise
|
||||
elif SafetyMetaclass.core:
|
||||
log.error('Error in a plugin', exc_info=True)
|
||||
SafetyMetaclass.core.information(traceback.format_exc())
|
||||
SafetyMetaclass.core.information(traceback.format_exc(), 'Error')
|
||||
return None
|
||||
return helper
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ class PluginManager(object):
|
|||
module = None
|
||||
loader = self.finder.find_module(name, self.load_path)
|
||||
if not loader:
|
||||
self.core.information('Could not find plugin: %s' % name)
|
||||
self.core.information('Could not find plugin: %s' % name, 'Error')
|
||||
return
|
||||
module = loader.load_module()
|
||||
except Exception as e:
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue