Added message sending hooks to test plugins

This commit is contained in:
James Booth
2013-09-08 18:59:53 +01:00
parent 1fda33f5d5
commit 53a3be15f0
3 changed files with 51 additions and 0 deletions

View File

@@ -47,6 +47,18 @@ module RubyTest
return message + "[RUBY]"
end
def self.prof_on_private_message_send(room, nick, message)
Prof::cons_show("RubyTest: on_private_message_send, " + room + ", " + nick + ", " + message)
Prof::cons_alert
return message + "[RUBY]"
end
def self.prof_on_room_message_send(room, message)
Prof::cons_show("RubyTest: on_room_message_send, " + room + ", " + message)
Prof::cons_alert
return message + "[RUBY]"
end
def self.prof_on_shutdown()
Prof::log_info("RubyTest: on_shutdown");
end