Jason R. Coombs avatar Jason R. Coombs committed aba1251

Removed excess paranthesis

Comments (0)

Files changed (1)

         Handle client PING requests to keep the connection alive.
         response = ':%s PONG :%s' % (self.server.servername, self.server.servername)
-        return (response)
+        return response
     def handle_join(self, params):
                 if not channel.name in self.channels:
                     # The user isn't in the channel.
                     raise IRCError.from_name('cannotsendtochan',
-                        '%s :Cannot send to channel' % (channel.name))
+                        '%s :Cannot send to channel' % channel.name)
                 for client in channel.clients:
                     # Send message to all client in the channel, except the user himself.
                     # TODO: Abstract this into a seperate method so that not every function has
         client doesn't linger around in any channel or the client list, in case
         the client didn't properly close the connection with PART and QUIT.
-        log.info('Client disconnected: %s' % (self.client_ident()))
-        response = ':%s QUIT :EOF from client' % (self.client_ident())
+        log.info('Client disconnected: %s', self.client_ident())
+        response = ':%s QUIT :EOF from client' % self.client_ident()
         for channel in self.channels.values():
             if self in channel.clients:
                 # Client is gone without properly QUITing or PARTing this
-        log.info('Connection finished: %s' % (self.client_ident()))
+        log.info('Connection finished: %s', self.client_ident())
     def __repr__(self):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.