main: Read config file only if no jid parameter provided
Signed-off-by: nex <nex@nexadn.de>
This commit is contained in:
parent
ecb5697ddb
commit
d1abb7ebc5
@ -413,7 +413,8 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
// Loading config file
|
||||
// Loading config file if jid not provided by command line
|
||||
if (jid == NULL) {
|
||||
GKeyFile *config_file = g_key_file_new();
|
||||
GError *error = NULL;
|
||||
GString* configfile = g_string_new( g_get_home_dir());
|
||||
@ -439,6 +440,7 @@ int main(int argc, char *argv[]) {
|
||||
pwd = g_key_file_get_value (config_file, account, "pwd" ,&error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( !pwd ) {
|
||||
static struct termios current_terminal;
|
||||
|
Loading…
Reference in New Issue
Block a user