|
@@ -114,15 +114,6 @@ static int char_init_done = 0;
|
|
void chrif_setuserid(char *id)
|
|
void chrif_setuserid(char *id)
|
|
{
|
|
{
|
|
memcpy(userid, id, NAME_LENGTH);
|
|
memcpy(userid, id, NAME_LENGTH);
|
|
- if (strcmp(userid, "s1")==0 && strcmp(passwd, "p1")==0) {
|
|
|
|
- ShowError("Using the default user/password s1/p1 is NOT RECOMMENDED.\n");
|
|
|
|
-#ifdef TXT_ONLY
|
|
|
|
- ShowNotice("Please edit your save/account.txt file to create a proper inter-server user/password (gender 'S')\n");
|
|
|
|
-#else
|
|
|
|
- ShowNotice("Please edit your 'login' table to create a proper inter-server user/password (gender 'S')\n");
|
|
|
|
-#endif
|
|
|
|
- ShowNotice("and then edit your user/password in conf/map_athena.conf (or conf/import/map_conf.txt)\n");
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/*==========================================
|
|
/*==========================================
|
|
@@ -132,7 +123,15 @@ void chrif_setuserid(char *id)
|
|
void chrif_setpasswd(char *pwd)
|
|
void chrif_setpasswd(char *pwd)
|
|
{
|
|
{
|
|
memcpy(passwd, pwd, NAME_LENGTH);
|
|
memcpy(passwd, pwd, NAME_LENGTH);
|
|
- if (strcmp(userid, "s1")==0 && strcmp(pwd, "p1")==0) {
|
|
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/*==========================================
|
|
|
|
+ *
|
|
|
|
+ *------------------------------------------
|
|
|
|
+ */
|
|
|
|
+void chrif_checkdefaultlogin(void)
|
|
|
|
+{
|
|
|
|
+ if (strcmp(userid, "s1")==0 && strcmp(passwd, "p1")==0) {
|
|
ShowError("Using the default user/password s1/p1 is NOT RECOMMENDED.\n");
|
|
ShowError("Using the default user/password s1/p1 is NOT RECOMMENDED.\n");
|
|
#ifdef TXT_ONLY
|
|
#ifdef TXT_ONLY
|
|
ShowNotice("Please edit your save/account.txt file to create a proper inter-server user/password (gender 'S')\n");
|
|
ShowNotice("Please edit your save/account.txt file to create a proper inter-server user/password (gender 'S')\n");
|
|
@@ -143,6 +142,7 @@ void chrif_setpasswd(char *pwd)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
/*==========================================
|
|
/*==========================================
|
|
*
|
|
*
|
|
*------------------------------------------
|
|
*------------------------------------------
|