diff options
author | Sean B. Palmer <sbp@aldebaran.local> | 2011-09-05 17:46:17 +0100 |
---|---|---|
committer | Sean B. Palmer <sbp@aldebaran.local> | 2011-09-05 17:46:17 +0100 |
commit | 2d3009ccb123bb34bf0d8b8b516a15c05240bf03 (patch) | |
tree | 28029457224da9cd91187e17f8b90cff5cb2de57 /bot.py | |
parent | 66edd833726d0a14400df65311999b1496b9f8cb (diff) | |
download | bot-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-x | bot.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |