diff options
author | James Booth <boothj5@gmail.com> | 2015-06-17 19:55:52 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-06-17 19:55:52 +0100 |
commit | 1af3565cbd1965d0e8cbdedaaf0db9bc249072bc (patch) | |
tree | 907f7e012a2c668578c64157770b974fdfd83983 /src/muc.c | |
parent | 8fde14879a7f9d6d6a60244e8f8000c123dd3115 (diff) | |
parent | e00a03f91697acda69e576e68733ba8c13c0fec4 (diff) | |
download | profani-tty-1af3565cbd1965d0e8cbdedaaf0db9bc249072bc.tar.gz |
Merge branch 'master' into openpgp
Diffstat (limited to 'src/muc.c')
-rw-r--r-- | src/muc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/muc.c b/src/muc.c index 6fa548bc..4474976d 100644 --- a/src/muc.c +++ b/src/muc.c @@ -34,6 +34,7 @@ #include <stdlib.h> #include <string.h> +#include <assert.h> #include <glib.h> @@ -666,7 +667,8 @@ char * muc_autocomplete(ProfWin *window, const char * const input) { if (window->type == WIN_MUC) { - ProfMucWin *mucwin = wins_get_current_muc(); + ProfMucWin *mucwin = (ProfMucWin*)window; + assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK); ChatRoom *chat_room = g_hash_table_lookup(rooms, mucwin->roomjid); if (chat_room && chat_room->nick_ac) { |