Skip to content

Commit

Permalink
stop silly
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Aug 21, 2021
1 parent 6151283 commit 0fdaa2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example_plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def on_load(server: PluginServerInterface, old_module):
Like migrating data, reading config file or adding help messages
old_module is the previous plugin instance. If the plugin is freshly loaded it will be None
"""
global counter
if old_module is not None:
counter = old_module.counter + 1
else:
Expand Down

0 comments on commit 0fdaa2d

Please sign in to comment.