diff --git a/chatroom.chatroom.inc b/chatroom.chatroom.inc
diff --git a/chatroom.js b/chatroom.js
index f5352e7..9f6fb56 100644
--- a/chatroom.js
+++ b/chatroom.js
@@ -143,6 +143,12 @@ Drupal.chatroom.updateUserList = function(message) {
 Drupal.chatroom.addMessageToBoard = function(message) {
   $('#chatroom-board-' + message.cid).append(message.msg);
   Drupal.chatroom.scrollToLatestMessage(message.cid);
+  for(key in message.addtional_actions){
+        var fn = Drupal.chatroom[message.addtional_actions[key]];
+        if(typeof fn === 'function') {
+            fn(message);
+        }
+    }
 }
 
 Drupal.chatroom.addPreviousMessageToBoard = function(message) {
diff --git a/chatroom.module b/chatroom.module
index 1c1271e..c881910 100644
--- a/chatroom.module
+++ b/chatroom.module
@@ -622,6 +622,7 @@ function chatroom_post_message($chatroom) {
         'msg' => theme('chatroom_message', array('message' => (object) $message, 'chatroom' => $chatroom)),
       ),
     );
+    drupal_alter('chatroom_push_msg', $push_message, $cotext);
     nodejs_send_content_channel_message($push_message);
     drupal_json_output(array('data' => array('messageCmid' => $cmid)));
   }
