IRCP

- information gathering tool for irc servers
git clone git://git.acid.vegas/IRCP.git
Log | Files | Refs | Archive | README | LICENSE

commit e0bb3f36b6e6fb03dbae6fadecbe9e51c9e8f226
parent 31cf9df5c4f800fa4d7c0a6ba54ca44aa81f831c
Author: acidvegas <acid.vegas@acid.vegas>
Date: Tue, 30 May 2023 03:18:07 -0400

Added note about possibly handling dict size checking another way

Diffstat:
Mircp.py | 2+-

1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ircp.py b/ircp.py
@@ -289,7 +289,7 @@ class probe:
 				args    = line.split()
 				numeric = args[1]
 				#debug(line)
-				if sys.getsizeof(self.snapshot) >= settings.log_max:
+				if sys.getsizeof(self.snapshot) >= settings.log_max: # TODO: Should we be checking this on every line of data from the server? Need to avoid asyncronous collisions possibly if not
 					with open(f'logs/{self.server}.json{self.multi}', 'w') as fp:
 						json.dump(self.snapshot, fp)
 					self.snapshot = {'raw':list()}