no manual saving, auto-save changes during /set
This commit is contained in:
		
							parent
							
								
									9ab089e2e4
								
							
						
					
					
						commit
						08ee077396
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
					@ -1084,7 +1084,13 @@ cmd_set (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 | 
				
			||||||
	while (vars[i].name);
 | 
						while (vars[i].name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!finds && !quiet)
 | 
						if (!finds && !quiet)
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
		PrintText (sess, "No such variable.\n");
 | 
							PrintText (sess, "No such variable.\n");
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						else if (prefs.autosave && !save_config ())
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							PrintText (sess, "Error saving changes to disk.\n");
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return TRUE;
 | 
						return TRUE;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3647,7 +3647,7 @@ const struct commands xc_cmds[] = {
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
	{"RECV", cmd_recv, 1, 0, 1, N_("RECV <text>, send raw data to xchat, as if it was received from the irc server")},
 | 
						{"RECV", cmd_recv, 1, 0, 1, N_("RECV <text>, send raw data to xchat, as if it was received from the irc server")},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	{"SAVECONF", cmd_saveconf, 0, 0, 1, N_("SAVECONF, saves the current settings to disk")},
 | 
						/*{"SAVECONF", cmd_saveconf, 0, 0, 1, N_("SAVECONF, saves the current settings to disk")},*/
 | 
				
			||||||
	{"SAY", cmd_say, 0, 0, 1,
 | 
						{"SAY", cmd_say, 0, 0, 1,
 | 
				
			||||||
	 N_("SAY <text>, sends the text to the object in the current window")},
 | 
						 N_("SAY <text>, sends the text to the object in the current window")},
 | 
				
			||||||
	{"SEND", cmd_send, 0, 0, 1, N_("SEND <nick> [<file>]")},
 | 
						{"SEND", cmd_send, 0, 0, 1, N_("SEND <nick> [<file>]")},
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue