Added optional colorama dependency to allow colours in windows console

Added flag to disable ansi colours. Fixes #10
Now passing plugin loader to plugins onEnable
This commit is contained in:
Ammar Askar committed 2012-12-31 07:20:06 +05:00
1 parent 6025e97932
commit 4988ab6ae1
7 files changed
+30 -18

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ class PacketDumper:
options = None
writeFile = None
def onEnable(self, parser):
def onEnable(self, parser, pluginloader):
parser.add_option("-d", "--dump-packets",
action="store_true", dest="dumpPackets", default=False,
help="run with this argument to dump packets")