Mercurial > hg
changeset 1900:5dc0fd8225e3
Display a warning when the configuration file hasn't been updated
Display a message when the jid is missing and the 'username' option is
still set in the configuration file.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 14 Apr 2010 21:01:31 +0200 |
parents | decf94827efe |
children | 84bb3e893586 |
files | mcabber/mcabber/main.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/mcabber/main.c Mon Apr 12 23:40:14 2010 +0200 +++ b/mcabber/mcabber/main.c Wed Apr 14 21:01:31 2010 +0200 @@ -384,8 +384,16 @@ const char *p; if ((p = settings_opt_get("server")) != NULL) scr_log_print(LPRINT_NORMAL, "Server: %s", p); - if ((p = settings_opt_get("jid")) != NULL) + if ((p = settings_opt_get("jid")) != NULL) { scr_log_print(LPRINT_NORMAL, "User JID: %s", p); + } else if (settings_opt_get("username")) { + /* TODO: remove after 0.10.1/2 */ + scr_log_print(LPRINT_NORMAL, "** ERROR: The JID is missing, but " + "the variable 'username' is defined in your " + "configuration file.\n" + "** Please update your configuration file and set " + "the 'jid' variable."); + } } /* If no password is stored, we ask for it before entering