Cooperation/Connection.py

changeset 3021
801289962f4e
parent 3020
542e97d4ecb3
child 3058
0a02c433f52d
child 3160
209a07d7e401
equal deleted inserted replaced
3020:542e97d4ecb3 3021:801289962f4e
198 ) 198 )
199 Preferences.syncPreferences() 199 Preferences.syncPreferences()
200 if bannedName in Preferences.getCooperation("BannedUsers"): 200 if bannedName in Preferences.getCooperation("BannedUsers"):
201 self.rejected.emit(self.trUtf8( 201 self.rejected.emit(self.trUtf8(
202 "* Connection attempted by banned user '{0}'.") 202 "* Connection attempted by banned user '{0}'.")
203 .format(bannedName)) 203 .format(bannedName))
204 self.abort() 204 self.abort()
205 return 205 return
206 206
207 if self.__serverPort != self.peerPort() and \ 207 if self.__serverPort != self.peerPort() and \
208 not Preferences.getCooperation("AutoAcceptConnections"): 208 not Preferences.getCooperation("AutoAcceptConnections"):

eric ide

mercurial