Fix pep8 support in src/plugins.
This commit is contained in:
parent
e51a8a650b
commit
0dca274360
1 changed files with 1052 additions and 1079 deletions
|
|
@ -22,21 +22,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
from logging import debug, info, warning, error
|
||||
from twisted.words.protocols.jabber import jid
|
||||
|
||||
|
||||
from sat.core.exceptions import UnknownEntityError
|
||||
from sat.tools.misc import SkipOtherTriggers
|
||||
|
||||
PLUGIN_INFO = {
|
||||
"name": "Parrot Plugin",
|
||||
"import_name": "EXP-PARROT",
|
||||
"type": "EXP",
|
||||
"protocols": [],
|
||||
"dependencies": ["XEP-0045"],
|
||||
"main": "Exp_Parrot",
|
||||
"handler": "no",
|
||||
"description": _("""Implementation of parrot mode (repeat messages between 2 entities)""")
|
||||
"name": "Parrot Plugin",
|
||||
"import_name": "EXP-PARROT",
|
||||
"type": "EXP",
|
||||
"protocols": [],
|
||||
"dependencies": ["XEP-0045"],
|
||||
"main": "Exp_Parrot",
|
||||
"handler": "no",
|
||||
"description": _("""Implementation of parrot mode (repeat messages between 2 entities)""")
|
||||
}
|
||||
|
||||
|
||||
class Exp_Parrot(object):
|
||||
"""Parrot mode plugin: repeat messages from one entity or MUC room to another one"""
|
||||
#XXX: This plugin can be potentially dangerous if we don't trust entities linked
|
||||
|
|
@ -123,5 +123,3 @@ class Exp_Parrot(object):
|
|||
del client.parrot_links[source_jid.userhostJID()]
|
||||
except (AttributeError, KeyError):
|
||||
pass
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue