From 15b04fb5907300b92a079533675c67b4ffdcae17 Mon Sep 17 00:00:00 2001 From: sketchyphoenix Date: Mon, 7 Jul 2008 06:18:16 +0000 Subject: * Players autotrading will not be able to recieve whispers (bugreport:1804) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12920 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/clif.c b/src/map/clif.c index bc04c6efb..198a60dca 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -8616,7 +8616,16 @@ void clif_parse_WisMessage(int fd, struct map_session_data* sd) clif_wis_end(fd, 2); // 2: ignored by target return; } - + + // if player is autotrading + if( dstsd->state.autotrade == 1 ) + { + char output[256]; + sprintf(output, "%s is in autotrade mode and cannot recieve whispered messages.", dstsd->status.name); + clif_wis_message(fd, sd->status.name, output, strlen(output) + 1); + return; + } + // notify sender of success clif_wis_end(fd, 0); // 0: success to send wisper -- cgit v1.2.3-70-g09d2