Added prof_on_shutdown hooks to test plugins
This commit is contained in:
@@ -30,6 +30,10 @@ module RubyTest
|
|||||||
return message + "[RUBY]"
|
return message + "[RUBY]"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.prof_on_shutdown()
|
||||||
|
Prof::log_info("RubyTest: on_shutdown");
|
||||||
|
end
|
||||||
|
|
||||||
def self.cmd_ruby()
|
def self.cmd_ruby()
|
||||||
return Proc.new { | msg |
|
return Proc.new { | msg |
|
||||||
if msg
|
if msg
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ def prof_on_message_send(jid, message):
|
|||||||
prof.cons_alert()
|
prof.cons_alert()
|
||||||
return message + "[PYTHON]"
|
return message + "[PYTHON]"
|
||||||
|
|
||||||
|
def prof_on_shutdown():
|
||||||
|
prof.log_info("python-test: on_shutdown")
|
||||||
|
|
||||||
def cmd_python(msg):
|
def cmd_python(msg):
|
||||||
if msg:
|
if msg:
|
||||||
prof.cons_show("python-test: /python command called, arg = " + msg)
|
prof.cons_show("python-test: /python command called, arg = " + msg)
|
||||||
|
|||||||
@@ -93,3 +93,9 @@ prof_on_message_send(const char * const jid, const char *message)
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
prof_on_shutdown(void)
|
||||||
|
{
|
||||||
|
prof_log_info("c-test: on_shutdown");
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user