From ae4c2781e19cdbecb57008ae7b9b33f4dbf810d8 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 24 Jun 2015 21:36:39 +0100 Subject: Added messaage when account resource changed whilst connected --- src/command/commands.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/command/commands.c') 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) { -- cgit 1.4.1-2-gfad0 s/?h=main&id=dc5f112c3ea8aff1a389513fa6c33d88fab07420'>refs log tree commit diff stats
path: root/real-files.mu
blob: 7e50ac8eb485d8b1ff66d4251f93ebfbd8ccf353 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18