Skip to content
This repository was archived by the owner on Feb 21, 2018. It is now read-only.

Commit 4f94b5a

Browse files
committed
core/admin: Reload all modules on an UPGRADE
1 parent ef1ab53 commit 4f94b5a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/core/admin.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,5 +261,11 @@ def commandUPGRADE(cod, line, splitline, source, destination):
261261
for line in output:
262262
cod.servicesLog(line.strip())
263263

264+
for module in cod.modules:
265+
if module == cod.config["uplink"]["protocol"]:
266+
pass
267+
cod.unloadmod(module)
268+
cod.loadmod(module)
269+
264270
cod.servicesLog("%s: UPGRADE" % cod.clients[source].nick)
265271

0 commit comments

Comments
 (0)