Get rid of the servlist_ rubbish

This commit is contained in:
Berke Viktor 2013-03-23 16:25:38 +01:00
parent 93c79d4463
commit a6d7cfab78
2 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@ my $last_modified;
my @servers; my @servers;
sub get { sub get {
my $server_file = Xchat::get_info( "configdir" ) . "/servlist_.conf"; my $server_file = Xchat::get_info( "configdir" ) . "/servlist.conf";
# recreate the list only if the server list file has changed # recreate the list only if the server list file has changed
if( -f $server_file && if( -f $server_file &&

View file

@ -1047,7 +1047,7 @@ servlist_load (void)
char *tmp; char *tmp;
ircnet *net = NULL; ircnet *net = NULL;
fp = hexchat_fopen_file ("servlist_.conf", "r", 0); fp = hexchat_fopen_file ("servlist.conf", "r", 0);
if (!fp) if (!fp)
return FALSE; return FALSE;
@ -1178,12 +1178,12 @@ servlist_save (void)
#ifndef WIN32 #ifndef WIN32
int first = FALSE; int first = FALSE;
buf = g_strdup_printf ("%s/servlist_.conf", get_xdir ()); buf = g_strdup_printf ("%s/servlist.conf", get_xdir ());
if (g_access (buf, F_OK) != 0) if (g_access (buf, F_OK) != 0)
first = TRUE; first = TRUE;
#endif #endif
fp = hexchat_fopen_file ("servlist_.conf", "w", 0); fp = hexchat_fopen_file ("servlist.conf", "w", 0);
if (!fp) if (!fp)
{ {
#ifndef WIN32 #ifndef WIN32