mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 01:36:32 +01:00
Disconnect reason argument default passed on
and made consistent with other places in code where it just uses an empty string.
This commit is contained in:
parent
7e6adb2fd9
commit
239b04d139
1 changed files with 2 additions and 2 deletions
|
|
@ -198,7 +198,7 @@ class IRCBot(irc.IRCClient, Session):
|
|||
logger.log_info("IRC bot '%s' connected to %s at %s:%s." % (self.nickname, self.channel,
|
||||
self.network, self.port))
|
||||
|
||||
def disconnect(self, reason=None):
|
||||
def disconnect(self, reason=""):
|
||||
"""
|
||||
Called by sessionhandler to disconnect this protocol.
|
||||
|
||||
|
|
@ -206,7 +206,7 @@ class IRCBot(irc.IRCClient, Session):
|
|||
reason (str): Motivation for the disconnect.
|
||||
|
||||
"""
|
||||
self.sessionhandler.disconnect(self)
|
||||
self.sessionhandler.disconnect(self, reason=reason)
|
||||
self.stopping = True
|
||||
self.transport.loseConnection()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue