Rename UNREGISTERED_NICKNAME to DEFAULT_NICKNAME.

This commit is contained in:
Shiz 2014-02-20 01:45:38 +01:00
parent 95e3d36fc0
commit ccad21370b
1 changed files with 2 additions and 3 deletions

View File

@ -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):