IRC Bot package #83

Closed
max wants to merge 16 commits from pkg-ircbot into master
Showing only changes of commit 24c2712e71 - Show all commits

View file

@ -45,7 +45,7 @@ def run_bot(c):
bot.hooks.clear() bot.hooks.clear()
for path in filter(lambda h: h[-3:] == '.py', os.listdir('hooks')): for path in filter(lambda h: h[-3:] == '.py', os.listdir('hooks')):
name = '.'.join(['hooks', path.split('.py')[0]]) name = '.'.join(['hooks', path[:-3]])
if name in sys.modules.keys(): if name in sys.modules.keys():
del sys.modules[name] del sys.modules[name]
try: try: