Commit graph

15 commits

Author SHA1 Message Date
jesopo
efb5c369c0 Remove unneeded "import gc" in ModuleManager.py 2018-09-01 19:09:25 +01:00
jesopo
1d35cee332 Log when a module is unloaded, including how many references are left to the
module object
2018-09-01 19:09:25 +01:00
jesopo
d6c0c64cbe Don't purge children on purge_context() in EventHook, make event_context
str(uuid) instead of just uuid in ModuleManager
2018-09-01 18:29:02 +01:00
Dan
ba065ad646
omg it's the future (#15)
* Add Database.UserChannelSettings.find_all_by_setting

* Turns out we didn't need find_all_by_setting

* Actually, we do need find_all_by_setting

* Table name typo

* Add Utils.bold and Utils.underline

* Added functionality to load, unload and reload modules from a command!
2018-09-01 11:40:57 +01:00
jesopo
b7cf524e98 Give modules event objects with "context"s, to facilitate purging all the event
hooks for a module
2018-08-31 13:44:39 +01:00
jesopo
01a5032e87 Load whitelist in start.py, pass to ModuleManager.load_modules 2018-08-30 11:41:02 +01:00
jesopo
c7303b3e66 assert statements are optimised out, these statement were useless. 2018-01-09 15:35:33 +00:00
Evelyn
07fbe2fec8 Handle ImportError for module loading 2017-09-05 10:03:38 +01:00
Evelyn
e232ad5dae Add IRCv3→SASL support for nickserv auth, added optional module whitelist, added server option for recording channel keys, increased flexibility for event raising in linehandler, probably other things too 2017-07-12 10:00:45 +01:00
jesopo
2015b1971c
added _cleanup(), a function called if present on a module before being unloaded. 2016-04-18 16:47:12 +01:00
jesopo
052e741da0
added a very unreliable and BAD IDEA way to unload modules. 2016-04-14 16:47:33 +01:00
jesopo
20058c4b67
added an extra check related to the --require-config hashflag, causing a non-true value to be counted as not present. 2016-04-06 16:03:38 +01:00
jesopo
80818fad66
added an untested module requirement system. 2016-04-04 12:36:59 +01:00
jesopo
87af05d4b6
added a "hashflag" to modules to stop modules being loaded that rely on a not-present config option. 2016-03-30 19:31:23 +01:00
jesopo
f943d63098
first commit. 2016-03-29 12:56:58 +01:00