summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-01 20:56:48 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-01 20:56:48 +0000
commitca65fdd9ac2fc07823856844a2d030d732e84718 (patch)
treea368a43f420766b1aa5806055a4bd66e085453ad /src/map/chrif.c
parentbf07760665f25b3a80af93c7bc68427c1f77349c (diff)
downloadhercules-ca65fdd9ac2fc07823856844a2d030d732e84718.tar.gz
hercules-ca65fdd9ac2fc07823856844a2d030d732e84718.tar.bz2
hercules-ca65fdd9ac2fc07823856844a2d030d732e84718.tar.xz
hercules-ca65fdd9ac2fc07823856844a2d030d732e84718.zip
- Map and char server now will complain if they are run using the default user/password set.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5158 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index e22c63c26..70734d592 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -114,6 +114,15 @@ static int char_init_done = 0;
void chrif_setuserid(char *id)
{
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");
+ }
}
/*==========================================
@@ -123,6 +132,15 @@ void chrif_setuserid(char *id)
void chrif_setpasswd(char *pwd)
{
memcpy(passwd, pwd, NAME_LENGTH);
+ if (strcmp(userid, "s1")==0 && strcmp(pwd, "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");
+ }
}
/*==========================================