Merge branch 'master' into patch-listener-plugins

pull/11/head
Sina Mashek 2017-12-06 16:01:08 +02:00 committed by GitHub
commit 8601f93e1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import imp
import os
import ssl
import time
import pinhook.plugin
import irc.bot
@ -54,6 +55,8 @@ class Bot(irc.bot.SingleServerIRCBot):
setattr(self, a, kwarguments[a])
def load_plugins(self):
# clear plugin list to ensure no old plugins remain
pinhook.plugin.clear_plugins()
# ensure plugin folder exists
if not os.path.exists(self.plugin_dir):
os.makedirs(self.plugin_dir)