about summary refs log tree commit diff stats
path: root/src/muc.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-06-17 19:55:52 +0100
committerJames Booth <boothj5@gmail.com>2015-06-17 19:55:52 +0100
commit1af3565cbd1965d0e8cbdedaaf0db9bc249072bc (patch)
tree907f7e012a2c668578c64157770b974fdfd83983 /src/muc.c
parent8fde14879a7f9d6d6a60244e8f8000c123dd3115 (diff)
parente00a03f91697acda69e576e68733ba8c13c0fec4 (diff)
downloadprofani-tty-1af3565cbd1965d0e8cbdedaaf0db9bc249072bc.tar.gz
Merge branch 'master' into openpgp
Diffstat (limited to 'src/muc.c')
-rw-r--r--src/muc.c4
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) {