summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-19 16:55:13 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-02-19 16:55:13 +0000
commit8e852c55ed530007343e293bf5c8fdb9fd53e322 (patch)
tree0631c82d4449eb8215f0328b2d47bc61384bcd90 /src/map/clif.c
parent76060b9b386d8834ff796a8df2eaa0bb0a497fff (diff)
downloadhercules-8e852c55ed530007343e293bf5c8fdb9fd53e322.tar.gz
hercules-8e852c55ed530007343e293bf5c8fdb9fd53e322.tar.bz2
hercules-8e852c55ed530007343e293bf5c8fdb9fd53e322.tar.xz
hercules-8e852c55ed530007343e293bf5c8fdb9fd53e322.zip
* Forgotten update to the definition of script command 'input'.
* Enabled DEBUG_MEMMGR only in DEBUG mode. * Made autotrading characters be kicked instead of reporting double login. * Made create_session initialize session_data to NULL. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12218 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 209f32e0b..c94a02bca 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7648,7 +7648,11 @@ void clif_parse_WantToConnection(int fd, TBL_PC* sd)
return;
} else if( map_knowsaccount(account_id) )
{// double login
- ShowError("clif_parse_WantToConnection: double login attempt AID/CID: %d/%d, rejecting...\n", account_id, char_id);
+ sd = map_id2sd(acount_id);
+ if( sd && sd->state.autotrade )
+ map_quit(sd);// kick autotrading character
+ else
+ ShowError("clif_parse_WantToConnection: double login attempt AID/CID: %d/%d, rejecting...\n", account_id, char_id);
WFIFOHEAD(fd,packet_len(0x6a));
WFIFOW(fd,0) = 0x6a;
WFIFOB(fd,2) = 3; // Rejected by server