about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-12-27 00:58:33 +0000
committerJames Booth <boothj5@gmail.com>2014-12-27 00:58:33 +0000
commit53ecd3b383a01ddb71b6d7fe2320158510582e43 (patch)
treee13a276e4f35fa1c9d1ef578a9b4ddd9f3e4efd0 /src/command
parente602c2909e250e8f1dd9e6420585232113fb9ded (diff)
parent3b9594608351818580f3fb9ea91d93105993b891 (diff)
downloadprofani-tty-53ecd3b383a01ddb71b6d7fe2320158510582e43.tar.gz
Merge branch 'master' into chat-sessions
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index a4c36a62..44e91492 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1710,7 +1710,6 @@ cmd_info(gchar **args, struct cmd_help_t help)
     jabber_conn_status_t conn_status = jabber_get_connection_status();
     win_type_t win_type = ui_current_win_type();
     PContact pcontact = NULL;
-    char *room = NULL;
 
     if (conn_status != JABBER_CONNECTED) {
         cons_show("You are not currently connected.");
@@ -1725,7 +1724,7 @@ cmd_info(gchar **args, struct cmd_help_t help)
                 Occupant *occupant = muc_roster_item(mucwin->roomjid, usr);
                 if (occupant) {
                     ProfWin *current = wins_get_current();
-                    win_show_occupant_info(current, room, occupant);
+                    win_show_occupant_info(current, mucwin->roomjid, occupant);
                 } else {
                     ui_current_print_line("No such occupant \"%s\" in room.", usr);
                 }