Added at_server_start() and at_server_stop() hooks to allow users to safely initialize their custom systems whenever the server restarts.
This commit is contained in:
parent
7818ca077a
commit
309c03ce43
7 changed files with 81 additions and 33 deletions
|
|
@ -1,14 +1,14 @@
|
|||
#
|
||||
# Example module holding functions for out-of-band protocols to
|
||||
# import and map to given commands from the client. This module
|
||||
# is selected by settings.OOB_FUNC_MODULE.
|
||||
#
|
||||
# All functions defined global in this module will be available
|
||||
# for the oob system to call. They will be called with a session/character
|
||||
# as first argument (depending on if the session is logged in or not),
|
||||
# following by any number of extra arguments. The return value will
|
||||
# be packed and returned to the oob protocol and can be on any form.
|
||||
#
|
||||
"""
|
||||
Example module holding functions for out-of-band protocols to
|
||||
import and map to given commands from the client. This module
|
||||
is selected by settings.OOB_FUNC_MODULE.
|
||||
|
||||
All functions defined global in this module will be available
|
||||
for the oob system to call. They will be called with a session/character
|
||||
as first argument (depending on if the session is logged in or not),
|
||||
following by any number of extra arguments. The return value will
|
||||
be packed and returned to the oob protocol and can be on any form.
|
||||
"""
|
||||
|
||||
def testoob(character, *args, **kwargs):
|
||||
"Simple test function"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue