Skip to content
Snippets Groups Projects
Commit 4ec12c93 authored by Sébastien Helleu's avatar Sébastien Helleu
Browse files

Fix pylint errors

parent a8b279fb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -115,8 +115,7 @@ class Client(object): # pylint: disable=too-many-instance-attributes
if with_number:
self.nicknumber += 1
return '{0}{1}'.format(fuzzy_string(1, 5), self.nicknumber)
else:
return fuzzy_string(1, 10)
return fuzzy_string(1, 10)
 
def send(self, data):
"""Send one message to client."""
Loading
Loading
@@ -239,7 +238,7 @@ class Client(object): # pylint: disable=too-many-instance-attributes
 
def flood_channel_part(self, channel):
"""Part or quit of a user in a channel."""
if len(self.channels[channel]) == 0:
if not self.channels[channel]:
return
rnick = self.channel_random_nick(channel)
if not rnick:
Loading
Loading
@@ -254,7 +253,7 @@ class Client(object): # pylint: disable=too-many-instance-attributes
 
def flood_channel_kick(self, channel):
"""Kick of a user in a channel."""
if len(self.channels[channel]) == 0:
if not self.channels[channel]:
return
rnick1 = self.channel_random_nick(channel)
rnick2 = self.channel_random_nick(channel)
Loading
Loading
@@ -266,7 +265,7 @@ class Client(object): # pylint: disable=too-many-instance-attributes
 
def flood_channel_message(self, channel):
"""Message from a user in a channel."""
if len(self.channels[channel]) == 0:
if not self.channels[channel]:
return
rnick = self.channel_random_nick(channel)
if not rnick:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment