diff options
author | James Booth <boothj5@gmail.com> | 2016-10-11 23:38:59 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-10-11 23:38:59 +0100 |
commit | 0890179fc42a7304dc03c76bd680e61a43f6e072 (patch) | |
tree | 5ea745734e3ddf78dc89c8e08377b70a5c5914f9 /src/command | |
parent | 0337c5b22c8138ea7473b15e0687a04acb4eb70a (diff) | |
download | profani-tty-0890179fc42a7304dc03c76bd680e61a43f6e072.tar.gz |
Remove win_print, use win_printf instead
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/cmd_funcs.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 1d7d0b7f..0117029b 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -1481,7 +1481,7 @@ _cmd_help_cmd_list(const char *const tag) if (tag) { win_printf(console, '-', 0, NULL, 0, THEME_WHITE_BOLD, "", "%s commands", tag); } else { - win_print(console, '-', 0, NULL, 0, THEME_WHITE_BOLD, "", "All commands"); + win_printf(console, '-', 0, NULL, 0, THEME_WHITE_BOLD, "", "All commands"); } GList *ordered_commands = NULL; @@ -3942,7 +3942,7 @@ cmd_subject(ProfWin *window, const char *const command, gchar **args) win_printf(window, '!', 0, NULL, NO_EOL, THEME_ROOMINFO, "", "Room subject: "); win_printf(window, '!', 0, NULL, NO_DATE, 0, "", "%s", subject); } else { - win_print(window, '!', 0, NULL, 0, THEME_ROOMINFO, "", "Room has no subject"); + win_printf(window, '!', 0, NULL, 0, THEME_ROOMINFO, "", "Room has no subject"); } return TRUE; } @@ -4050,7 +4050,7 @@ cmd_affiliation(ProfWin *window, const char *const command, gchar **args) iq_room_affiliation_list(mucwin->roomjid, "member"); iq_room_affiliation_list(mucwin->roomjid, "outcast"); } else if (g_strcmp0(affiliation, "none") == 0) { - win_print((ProfWin*) mucwin, '!', 0, NULL, 0, 0, "", "Cannot list users with no affiliation."); + win_printf((ProfWin*) mucwin, '!', 0, NULL, 0, 0, "", "Cannot list users with no affiliation."); } else { iq_room_affiliation_list(mucwin->roomjid, affiliation); } @@ -4118,7 +4118,7 @@ cmd_role(ProfWin *window, const char *const command, gchar **args) iq_room_role_list(mucwin->roomjid, "participant"); iq_room_role_list(mucwin->roomjid, "visitor"); } else if (g_strcmp0(role, "none") == 0) { - win_print((ProfWin*) mucwin, '!', 0, NULL, 0, 0, "", "Cannot list users with no role."); + win_printf((ProfWin*) mucwin, '!', 0, NULL, 0, 0, "", "Cannot list users with no role."); } else { iq_room_role_list(mucwin->roomjid, role); } @@ -4180,12 +4180,12 @@ cmd_room(ProfWin *window, const char *const command, gchar **args) if (g_strcmp0(args[0], "accept") == 0) { gboolean requires_config = muc_requires_config(mucwin->roomjid); if (!requires_config) { - win_print(window, '!', 0, NULL, 0, THEME_ROOMINFO, "", "Current room does not require configuration."); + win_printf(window, '!', 0, NULL, 0, THEME_ROOMINFO, "", "Current room does not require configuration."); return TRUE; } else { iq_confirm_instant_room(mucwin->roomjid); muc_set_requires_config(mucwin->roomjid, FALSE); - win_print(window, '!', 0, NULL, 0, THEME_ROOMINFO, "", "Room unlocked."); + win_printf(window, '!', 0, NULL, 0, THEME_ROOMINFO, "", "Room unlocked."); return TRUE; } } @@ -4687,7 +4687,7 @@ cmd_tiny(ProfWin *window, const char *const command, gchar **args) char *tiny = tinyurl_get(url); if (!tiny) { - win_print(window, '-', 0, NULL, 0, THEME_ERROR, "", "Couldn't create tinyurl."); + win_printf(window, '-', 0, NULL, 0, THEME_ERROR, "", "Couldn't create tinyurl."); return TRUE; } |