diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 6 | ||||
-rw-r--r-- | src/map/script.c | 2 |
2 files changed, 6 insertions, 2 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 diff --git a/src/map/script.c b/src/map/script.c index 46fecb806..fddf51169 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -13070,7 +13070,7 @@ struct script_function buildin_func[] = { BUILDIN_DEF(getarg,"i?"), BUILDIN_DEF(jobchange,"i*"), BUILDIN_DEF(jobname,"i"), - BUILDIN_DEF(input,"v"), + BUILDIN_DEF(input,"v??"), BUILDIN_DEF(warp,"sii"), BUILDIN_DEF(areawarp,"siiiisii"), BUILDIN_DEF(warpchar,"siii"), // [LuzZza] |