Remove standard default settings. Don't want to endorse any particular network.

This commit is contained in:
Mid Favila 2022-08-21 18:03:40 -04:00
parent 6edc25f562
commit 6aa4f110ed
2 changed files with 16 additions and 11 deletions

View File

@ -1,3 +1,8 @@
2022-8-21 Mid Favila <midfavila@sdf.org>
* Fix a few potential buffer overflows and wrap assignment statements in parens.
* Convert build system to plain Make.
* Start removing references to FreeNode.
2005-04-01 Riccardo Mottola <rmottola@users.sf.net>
* network.c : removed useless statement

View File

@ -221,9 +221,9 @@ void getStartupPrefs(Widget mainWin)
{
printf("config file not found.\n");
strcpy(sysState.myNick, "");
strcpy(sysState.myName, "Nebula User");
strcpy(sysState.serverName, "irc.freenode.org");
strcpy(serverPortNum, "6666");
strcpy(sysState.myName, "");
strcpy(sysState.serverName, "");
strcpy(serverPortNum, "");
}
free(confFilePath);
}
@ -252,11 +252,11 @@ void okButtStartupCbk()
if (strlen(name) > 0 && strlen(name) <= MAX_NAME_LEN)
strcpy(sysState.myName, name);
else
strcpy(sysState.myName, "nebula user");
strcpy(sysState.myName, "noname");
if (strlen(server) > 0 &&strlen(server) <= MAX_SERVERNAME_LEN)
strcpy(theServer, server);
else
strcpy(theServer, "irc.freenode.org");
strcpy(theServer, "");
printf("port: %s, %d\n", port, atoi(port));
if (strlen(port) > 0 && strlen(port) <= 5)
{
@ -444,9 +444,9 @@ void setPreferences(Widget mainWin)
{
printf("config file not found.\n");
strcpy(myNick, "");
strcpy(myName, "Nebula User");
strcpy(serverName, "irc.freenode.org");
strcpy(serverPortNum, "6666");
strcpy(myName, "");
strcpy(serverName, "");
strcpy(serverPortNum, "");
}
free(confFilePath);
}
@ -480,15 +480,15 @@ void okButtPrefCbk()
if (strlen(name) > 0 && strlen(name) <= MAX_NAME_LEN)
strcpy(myName, name);
else
strcpy(myName, "nebula user");
strcpy(myName, "noname");
if (strlen(server) > 0 &&strlen(server) <= MAX_SERVERNAME_LEN)
strcpy(theServer, server);
else
strcpy(theServer, "irc.freenode.org");
strcpy(theServer, "");
if (strlen(port) > 0 && strlen(port) <= 5)
strcpy(serverPort, port);
else
strcpy(serverPort, "6666");
strcpy(serverPort, "");
/* write out configuration file */
if((confFilePath = getPreferencesFilePath()))