Added room and private message received hooks to test plugins

This commit is contained in:
James Booth
2013-09-05 23:29:24 +01:00
parent 267b8eacde
commit 1fda33f5d5
3 changed files with 52 additions and 0 deletions

View File

@@ -29,6 +29,18 @@ module RubyTest
return message + "[RUBY]"
end
def self.prof_on_room_message_received(room, nick, message)
Prof::cons_show("RubyTest: on_room_message_received, " + room + ", " + nick + ", " + message)
Prof::cons_alert
return message + "[RUBY]"
end
def self.prof_on_private_message_received(room, nick, message)
Prof::cons_show("RubyTest: on_private_message_received, " + room + ", " + nick + ", " + message)
Prof::cons_alert
return message + "[RUBY]"
end
def self.prof_on_message_send(jid, message)
Prof::cons_show("RubyTest: on_message_send, " + jid + ", " + message)
Prof::cons_alert