* Players autotrading will not be able to recieve whispers (bugreport:1804)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12920 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
sketchyphoenix 2008-07-07 06:18:16 +00:00
parent 35c93c2cab
commit c63756b74b
2 changed files with 11 additions and 1 deletions

View File

@ -5,6 +5,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2008/07/07
* Removed stop/slowdown effect from Grimtooth (bugreport:1806)
* Players autotrading will not be able to recieve whispers (bugreport:1804) [SketchyPhoenix]
2008/07/06
* Slight cleanup of item-based walk speed bonuses [ultramage]
- removed bSpeed bonus code (was just disabled until now)

View File

@ -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