summaryrefslogtreecommitdiffstats
path: root/bot.py
diff options
context:
space:
mode:
authorSean B. Palmer <sbp@aldebaran.local>2011-09-05 17:46:17 +0100
committerSean B. Palmer <sbp@aldebaran.local>2011-09-05 17:46:17 +0100
commit2d3009ccb123bb34bf0d8b8b516a15c05240bf03 (patch)
tree28029457224da9cd91187e17f8b90cff5cb2de57 /bot.py
parent66edd833726d0a14400df65311999b1496b9f8cb (diff)
downloadbot-2d3009ccb123bb34bf0d8b8b516a15c05240bf03.tar.gz
bot-2d3009ccb123bb34bf0d8b8b516a15c05240bf03.tar.bz2
bot-2d3009ccb123bb34bf0d8b8b516a15c05240bf03.zip
Attempt to patch a possible message injection hole.
Diffstat (limited to 'bot.py')
-rwxr-xr-xbot.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot.py b/bot.py
index 3886a87..453dbc4 100755
--- a/bot.py
+++ b/bot.py
@@ -55,6 +55,8 @@ class Phenny(irc.Bot):
for filename in filenames:
name = os.path.basename(filename)[:-3]
if name in excluded_modules: continue
+ # if name in sys.modules:
+ # del sys.modules[name]
try: module = imp.load_source(name, filename)
except Exception, e:
print >> sys.stderr, "Error loading %s: %s (in bot.py)" % (name, e)