aboutsummaryrefslogtreecommitdiff
path: root/IRCBot.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-08-08 10:33:00 +0100
committerGravatar jesopo2018-08-08 10:33:00 +0100
commite6321abd55c9af935e2212e1613ca1ddc08338c1 (patch)
tree16fac9b3a97975fa9436f17d976dc42ba844e3e9 /IRCBot.py
parentget highlight-spam-protection setting before highlight-spam-threshold (diff)
signature
Fixed another reference to the old database structure
Diffstat (limited to 'IRCBot.py')
-rw-r--r--IRCBot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/IRCBot.py b/IRCBot.py
index 87460094..c178a4f3 100644
--- a/IRCBot.py
+++ b/IRCBot.py
@@ -92,7 +92,7 @@ class Bot(object):
del self.servers[server.fileno()]
def reconnect(self, event):
- server_details = self.database.get_server(event["server_id"])
+ server_details = self.database.servers.get(event["server_id"])
server = self.add_server(*(server_details + (False,)))
if self.connect(server):
self.servers[server.fileno()] = server