[FloodProtector] Remove unintended tabs from log output

master
ShadowNinja 2013-12-31 13:17:51 -06:00
parent 7cff91e497
commit 8bf2b0b882
1 changed files with 10 additions and 9 deletions

View File

@ -113,7 +113,7 @@ class FloodProtector(callbacks.Plugin):
if (not irc.nick in irc.state.channels[channel].ops) and\
(not irc.nick in irc.state.channels[channel].halfops):
self.log.warning('%s flooded in %s, but not opped.',\
self.log.warning("%s flooded in %s, but not opped.",\
msg.nick, channel)
return
@ -125,16 +125,17 @@ class FloodProtector(callbacks.Plugin):
if msg.nick in irc.state.channels[channel].ops or\
msg.nick in irc.state.channels[channel].halfops or\
msg.nick in irc.state.channels[channel].voices:
self.log.warning("""%s flooded in %s. But\
I will not punish them because they have special
access.""", msg.nick, channel)
self.log.warning("%s flooded in %s. But"\
+ " I will not punish them because they have"\
+ " special access.", msg.nick, channel)
return
if ircdb.checkCapability(msg.prefix, 'trusted') or\
ircdb.checkCapability(msg.prefix, 'admin') or\
ircdb.checkCapability(msg.prefix, channel + ',op'):
self.log.warning("""%s flooded in %s. But\
I will not punish them because they are trusted.""",
msg.nick, channel)
self.log.warning("%s flooded in %s. But"\
+ " I will not punish them because they are"\
+ " trusted.", msg.nick, channel)
return
if msg.nick in self.offenses and self.offenses[msg.nick] > 2:
@ -143,8 +144,8 @@ class FloodProtector(callbacks.Plugin):
banmask = banmaskstyle.makeBanmask(hostmask)
if not dummy:
irc.queueMsg(ircmsgs.ban(channel, banmask))
self.log.warning("""Banned %s (%s) from %s for repeated
flooding.""", banmask, msg.nick, channel)
self.log.warning("Banned %s (%s) from %s for repeated"\
+ " flooding.", banmask, msg.nick, channel)
reason = floodType + " flood detected."
if floodType == "Paste":