about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-02-10 21:26:59 +0000
committerJames Booth <boothj5@gmail.com>2015-02-10 21:27:27 +0000
commit1e2ef973348a58b0ba58eb020cc91e4f41a1d10e (patch)
tree88a7410ebc39fea72ca1f259cd7e315f04f5b9eb
parent6ab937c3e37b71315ab8661c6188ded49dfa182b (diff)
downloadprofani-tty-1e2ef973348a58b0ba58eb020cc91e4f41a1d10e.tar.gz
Fixed parameter order for /tiny in private and group chat
fixes #502
-rw-r--r--src/command/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 3c1a0980..9e9191d4 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -3116,11 +3116,11 @@ cmd_tiny(gchar **args, struct cmd_help_t help)
 #endif
             } else if (win_type == WIN_PRIVATE) {
                 ProfPrivateWin *privatewin = wins_get_current_private();
-                message_send_private(tiny, privatewin->fulljid);
+                message_send_private(privatewin->fulljid, tiny);
                 ui_outgoing_private_msg("me", privatewin->fulljid, tiny);
             } else if (win_type == WIN_MUC) {
                 ProfMucWin *mucwin = wins_get_current_muc();
-                message_send_groupchat(tiny, mucwin->roomjid);
+                message_send_groupchat(mucwin->roomjid, tiny);
             }
             free(tiny);
         } else {