diff options
Diffstat (limited to 'src/command/commands.c')
-rw-r--r-- | src/command/commands.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index 4a3cdd43..8cbbc109 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -2063,6 +2063,9 @@ cmd_room(gchar **args, struct cmd_help_t help) if ((g_strcmp0(args[0], "accept") != 0) && (g_strcmp0(args[0], "destroy") != 0) && (g_strcmp0(args[0], "config") != 0) && + (g_strcmp0(args[0], "moderators") != 0) && + (g_strcmp0(args[0], "participants") != 0) && + (g_strcmp0(args[0], "visitors") != 0) && (g_strcmp0(args[0], "info") != 0)) { cons_show("Usage: %s", help.usage); return TRUE; @@ -2082,6 +2085,21 @@ cmd_room(gchar **args, struct cmd_help_t help) return TRUE; } + if (g_strcmp0(args[0], "moderators") == 0) { + ui_show_room_role_list(window, room, MUC_ROLE_MODERATOR); + return TRUE; + } + + if (g_strcmp0(args[0], "participants") == 0) { + ui_show_room_role_list(window, room, MUC_ROLE_PARTICIPANT); + return TRUE; + } + + if (g_strcmp0(args[0], "visitors") == 0) { + ui_show_room_role_list(window, room, MUC_ROLE_VISITOR); + return TRUE; + } + if (g_strcmp0(args[0], "accept") == 0) { gboolean requires_config = muc_requires_config(room); if (!requires_config) { |