mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Autocomplete: flake8
This commit is contained in:
parent
d0eb48c90e
commit
7710edb5fe
@ -28,17 +28,10 @@
|
|||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
from supybot import conf, utils, plugins, ircutils, ircmsgs, callbacks
|
from supybot import conf, ircutils, ircmsgs, callbacks
|
||||||
from supybot.commands import *
|
from supybot.i18n import PluginInternationalization
|
||||||
|
|
||||||
try:
|
_ = PluginInternationalization("Autocomplete")
|
||||||
from supybot.i18n import PluginInternationalization
|
|
||||||
|
|
||||||
_ = PluginInternationalization("Autocomplete")
|
|
||||||
except ImportError:
|
|
||||||
# Placeholder that allows to run the plugin on a bot
|
|
||||||
# without the i18n module
|
|
||||||
_ = lambda x: x
|
|
||||||
|
|
||||||
|
|
||||||
REQUEST_TAG = "+draft/autocomplete-request"
|
REQUEST_TAG = "+draft/autocomplete-request"
|
||||||
@ -127,7 +120,7 @@ class Autocomplete(callbacks.Plugin):
|
|||||||
def doTagmsg(self, irc, msg):
|
def doTagmsg(self, irc, msg):
|
||||||
if REQUEST_TAG not in msg.server_tags:
|
if REQUEST_TAG not in msg.server_tags:
|
||||||
return
|
return
|
||||||
if not "msgid" in msg.server_tags:
|
if "msgid" not in msg.server_tags:
|
||||||
return
|
return
|
||||||
if not self._enabled(irc, msg):
|
if not self._enabled(irc, msg):
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user