mirror of https://github.com/Shizmob/pydle.git
Rename UNREGISTERED_NICKNAME to DEFAULT_NICKNAME.
This commit is contained in:
parent
95e3d36fc0
commit
ccad21370b
|
@ -9,11 +9,10 @@ from . import connection
|
||||||
from . import protocol
|
from . import protocol
|
||||||
|
|
||||||
__all__ = [ 'AlreadyInChannel', 'NotInChannel', 'BasicClient' ]
|
__all__ = [ 'AlreadyInChannel', 'NotInChannel', 'BasicClient' ]
|
||||||
UNREGISTERED_NICKNAME = '<unregistered>'
|
|
||||||
PING_DELAY = 30
|
PING_DELAY = 30
|
||||||
PING_TIMEOUT = 180
|
PING_TIMEOUT = 180
|
||||||
PING_IDENTIFIER = 'pydle-ping-timeout'
|
PING_IDENTIFIER = 'pydle-ping-timeout'
|
||||||
|
DEFAULT_NICKNAME = '<unregistered>'
|
||||||
|
|
||||||
class IRCError(Exception):
|
class IRCError(Exception):
|
||||||
""" Base class for all pydle errors. """
|
""" Base class for all pydle errors. """
|
||||||
|
@ -65,7 +64,7 @@ class BasicClient:
|
||||||
self.logger = logging.getLogger(__name__)
|
self.logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
# Public connection attributes.
|
# Public connection attributes.
|
||||||
self.nickname = UNREGISTERED_NICKNAME
|
self.nickname = DEFAULT_NICKNAME
|
||||||
self.network = None
|
self.network = None
|
||||||
|
|
||||||
def _reset_connection_attributes(self):
|
def _reset_connection_attributes(self):
|
||||||
|
|
Loading…
Reference in New Issue