summaryrefslogtreecommitdiff
path: root/logbot.py
diff options
context:
space:
mode:
Diffstat (limited to 'logbot.py')
-rw-r--r--logbot.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/logbot.py b/logbot.py
index 86e1cc6..d456625 100644
--- a/logbot.py
+++ b/logbot.py
@@ -171,6 +171,8 @@ class LogBot(SingleServerIRCBot):
if not os.path.exists(self.folder):
# Create the log folder if we need to
os.mkdir(self.folder)
+
+ if not os.path.exists(index):
create_html_file(index, "Logged Channels")
append_to_index(index, index_header % "Logged Channels")
shutil.copy2(self.stylesheet, self.folder)