Update test plugins

This commit is contained in:
James Booth
2017-01-28 19:48:51 +00:00
parent 1dcd915678
commit 035c190e1c
2 changed files with 6 additions and 3 deletions

View File

@@ -587,6 +587,7 @@ def prof_post_chat_message_display(barejid, resource, message):
def prof_pre_chat_message_send(barejid, message):
prof.win_create(plugin_win, _handle_win_input)
prof.win_show(plugin_win, "fired -> prof_pre_chat_message_send: " + barejid + ", " + message)
return message
def prof_post_chat_message_send(barejid, message):
@@ -607,6 +608,7 @@ def prof_post_room_message_display(barejid, nick, message):
def prof_pre_room_message_send(barejid, message):
prof.win_create(plugin_win, _handle_win_input)
prof.win_show(plugin_win, "fired -> prof_pre_room_message_send: " + barejid + ", " + message)
return message
def prof_post_room_message_send(barejid, message):
@@ -635,6 +637,7 @@ def prof_post_priv_message_display(barejid, nick, message):
def prof_pre_priv_message_send(barejid, nick, message):
prof.win_create(plugin_win, _handle_win_input)
prof.win_show(plugin_win, "fired -> prof_pre_priv_message_send: " + barejid + ", " + nick + ", " + message)
return message
def prof_post_priv_message_send(barejid, nick, message):

View File

@@ -791,7 +791,7 @@ prof_pre_chat_message_send(const char * const barejid, const char *message)
sprintf(buf, "%s%s, %s", str, barejid, message);
prof_win_show(plugin_win, buf);
return NULL;
return strdup(message);
}
void
@@ -839,7 +839,7 @@ prof_pre_room_message_send(const char * const barejid, const char *message)
sprintf(buf, "%s%s, %s", str, barejid, message);
prof_win_show(plugin_win, buf);
return NULL;
return strdup(message);
}
void
@@ -904,7 +904,7 @@ prof_pre_priv_message_send(const char * const barejid, const char * const nick,
sprintf(buf, "%s%s, %s, %s", str, barejid, nick, message);
prof_win_show(plugin_win, buf);
return NULL;
return strdup(message);
}
void