Added on_room_win_focus hooks to test plugins
This commit is contained in:
@@ -517,3 +517,7 @@ def prof_on_contact_presence(barejid, resource, presence, status, priority):
|
|||||||
def prof_on_chat_win_focus(barejid):
|
def prof_on_chat_win_focus(barejid):
|
||||||
_create_win()
|
_create_win()
|
||||||
prof.win_show(plugin_win, "fired -> prof_on_chat_win_focus: " + barejid)
|
prof.win_show(plugin_win, "fired -> prof_on_chat_win_focus: " + barejid)
|
||||||
|
|
||||||
|
def prof_on_room_win_focus(roomjid):
|
||||||
|
_create_win()
|
||||||
|
prof.win_show(plugin_win, "fired -> prof_on_room_win_focus: " + roomjid)
|
||||||
|
|||||||
@@ -873,3 +873,13 @@ prof_on_chat_win_focus(const char *const barejid)
|
|||||||
sprintf(buf, "%s%s", str, barejid);
|
sprintf(buf, "%s%s", str, barejid);
|
||||||
prof_win_show(plugin_win, buf);
|
prof_win_show(plugin_win, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
prof_on_room_win_focus(const char *const roomjid)
|
||||||
|
{
|
||||||
|
create_win();
|
||||||
|
char *str = "fired -> prof_on_room_win_focus: ";
|
||||||
|
char buf[strlen(str) + strlen(roomjid) + 1];
|
||||||
|
sprintf(buf, "%s%s", str, roomjid);
|
||||||
|
prof_win_show(plugin_win, buf);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user