about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-06-24 21:36:39 +0100
committerJames Booth <boothj5@gmail.com>2015-06-24 21:36:39 +0100
commitae4c2781e19cdbecb57008ae7b9b33f4dbf810d8 (patch)
treeecf75d7702369aa3204b32fca917a27babbdd313 /src/command/commands.c
parent583bccf631320af8693544502ec883ba656369cc (diff)
downloadprofani-tty-ae4c2781e19cdbecb57008ae7b9b33f4dbf810d8.tar.gz
Added messaage when account resource changed whilst connected
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 3f9009b4..5d324665 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -438,7 +438,11 @@ cmd_account(ProfWin *window, gchar **args, struct cmd_help_t help)
                     }
                 } else if (strcmp(property, "resource") == 0) {
                     accounts_set_resource(account_name, value);
-                    cons_show("Updated resource for account %s: %s", account_name, value);
+                    if (jabber_get_connection_status() == JABBER_CONNECTED) {
+                        cons_show("Updated resource for account %s: %s, you will need to reconnect to pick up the change.", account_name, value);
+                    } else {
+                        cons_show("Updated resource for account %s: %s", account_name, value);
+                    }
                     cons_show("");
                 } else if (strcmp(property, "password") == 0) {
                     if(accounts_get_account(account_name)->eval_password) {