Reformat project
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
from twisted.internet.protocol import Protocol, Factory, ClientFactory
|
||||
import main
|
||||
from utils.logging.log import *
|
||||
from twisted.internet.protocol import ClientFactory, Factory, Protocol
|
||||
|
||||
import main
|
||||
from core.parser import parseCommand
|
||||
from utils.logging.log import *
|
||||
|
||||
|
||||
class Server(Protocol):
|
||||
@@ -34,7 +34,10 @@ class Server(Protocol):
|
||||
|
||||
def connectionLost(self, reason):
|
||||
self.authed = False
|
||||
log("Connection lost from %s:%s -- %s" % (self.addr.host, self.addr.port, reason.getErrorMessage()))
|
||||
log(
|
||||
"Connection lost from %s:%s -- %s"
|
||||
% (self.addr.host, self.addr.port, reason.getErrorMessage())
|
||||
)
|
||||
if self.addr in main.connections.keys():
|
||||
del main.connections[self.addr]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user