Added current window reference to command functions

This commit is contained in:
James Booth
2015-06-17 00:15:28 +01:00
parent cfef64c767
commit 2215a3791f
24 changed files with 582 additions and 578 deletions

View File

@@ -663,10 +663,9 @@ muc_roster_nick_change_complete(const char * const room,
}
char *
muc_autocomplete(const char * const input)
muc_autocomplete(ProfWin *window, const char * const input)
{
win_type_t wintype = ui_current_win_type();
if (wintype == WIN_MUC) {
if (window->type == WIN_MUC) {
ProfMucWin *mucwin = wins_get_current_muc();
ChatRoom *chat_room = g_hash_table_lookup(rooms, mucwin->roomjid);