Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Cool Fire
hexchat
Commits
cbd72ff4
Commit
cbd72ff4
authored
Oct 13, 2012
by
Berke Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of auto_save, we always want to save
parent
dbef9c9e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
src/common/cfgfiles.c
src/common/cfgfiles.c
+1
-3
src/common/xchat.c
src/common/xchat.c
+8
-4
src/common/xchat.h
src/common/xchat.h
+0
-1
src/fe-text/fe-text.c
src/fe-text/fe-text.c
+0
-1
No files found.
src/common/cfgfiles.c
View file @
cbd72ff4
...
...
@@ -393,7 +393,6 @@ default_file (void)
/* Keep these sorted!! */
const
struct
prefs
vars
[]
=
{
{
"auto_save"
,
P_OFFINT
(
autosave
),
TYPE_BOOL
},
{
"auto_save_url"
,
P_OFFINT
(
autosave_url
),
TYPE_BOOL
},
{
"away_auto_unmark"
,
P_OFFINT
(
auto_unmark_away
),
TYPE_BOOL
},
...
...
@@ -683,7 +682,6 @@ load_config (void)
prefs
.
fastdccsend
=
1
;
#endif
prefs
.
wordwrap
=
1
;
prefs
.
autosave
=
1
;
prefs
.
autodialog
=
1
;
prefs
.
gui_input_spell
=
1
;
prefs
.
autoreconnect
=
1
;
...
...
@@ -1142,7 +1140,7 @@ cmd_set (struct session *sess, char *tbuf, char *word[], char *word_eol[])
{
PrintText
(
sess
,
"No such variable.
\n
"
);
}
else
if
(
prefs
.
autosave
&&
!
save_config
())
else
if
(
!
save_config
())
{
PrintText
(
sess
,
"Error saving changes to disk.
\n
"
);
}
...
...
src/common/xchat.c
View file @
cbd72ff4
...
...
@@ -847,14 +847,18 @@ xchat_exit (void)
in_xchat_exit
=
TRUE
;
plugin_kill_all
();
fe_cleanup
();
if
(
prefs
.
autosave
)
save_config
();
if
(
prefs
.
save_pevents
)
{
save_config
();
if
(
prefs
.
save_pevents
)
pevent_save
(
NULL
);
pevent_save
(
NULL
);
}
if
(
prefs
.
autosave_url
)
{
url_autosave
();
}
sound_save
();
notify_save
();
ignore_save
();
...
...
src/common/xchat.h
View file @
cbd72ff4
...
...
@@ -208,7 +208,6 @@ struct xchatprefs
unsigned
int
mainwindow_save
;
unsigned
int
perc_color
;
unsigned
int
perc_ascii
;
unsigned
int
autosave
;
unsigned
int
autodialog
;
unsigned
int
autosave_url
;
unsigned
int
autoreconnect
;
...
...
src/fe-text/fe-text.c
View file @
cbd72ff4
...
...
@@ -532,7 +532,6 @@ void
fe_init
(
void
)
{
/* the following should be default generated, not enfoced in binary */
prefs
.
autosave
=
0
;
prefs
.
use_server_tab
=
0
;
prefs
.
autodialog
=
0
;
/* except for these, there is no lag meter, there is no server list */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment