aboutsummaryrefslogtreecommitdiff
path: root/src/IRCBot.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-31 15:12:46 +0000
committerGravatar jesopo2018-10-31 15:12:46 +0000
commita4d8d1f85557ced37ab41038e9fbd25d6332eebf (patch)
treeee2886a839a32ac54cd64a0447044af6a19f7d08 /src/IRCBot.py
parentMove setting BitBotFormatter's converter (to time.gmtime) to class definition as (diff)
signature
Fix some non-explicit None returns, add type hints to important variables
Diffstat (limited to 'src/IRCBot.py')
-rw-r--r--src/IRCBot.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/IRCBot.py b/src/IRCBot.py
index e1683f97..e67dc0ee 100644
--- a/src/IRCBot.py
+++ b/src/IRCBot.py
@@ -62,6 +62,7 @@ class Bot(object):
for server in self.servers.values():
if server.id == id:
return server
+ return None
def connect(self, server: IRCServer.Server) -> bool:
try: