diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-19 13:26:02 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-19 13:26:02 +0000 |
commit | 3bd682b3cb3507c8a57fa6930475808981fd0663 (patch) | |
tree | bfcc3b1a81389c080f43778de9e9a2a3285bf9c5 /src/map/party.c | |
parent | 35874a560ee89397e14eac3e7f40fc0251d67053 (diff) | |
download | hercules-3bd682b3cb3507c8a57fa6930475808981fd0663.tar.gz hercules-3bd682b3cb3507c8a57fa6930475808981fd0663.tar.bz2 hercules-3bd682b3cb3507c8a57fa6930475808981fd0663.tar.xz hercules-3bd682b3cb3507c8a57fa6930475808981fd0663.zip |
* Added Global chat and Main chat logging
- lowered the priority of the 'logging off during gw' filter
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10580 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r-- | src/map/party.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/map/party.c b/src/map/party.c index eae29138a..87f75633b 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -573,11 +573,10 @@ int party_send_message(struct map_session_data *sd,char *mes,int len) return 0; intif_party_message(sd->status.party_id,sd->status.account_id,mes,len); party_recv_message(sd->status.party_id,sd->status.account_id,mes,len); - //Chat Logging support Type 'P' - if(log_config.chat&1 //we log everything then - || (log_config.chat&4 //if Party bit is on - && ( !agit_flag || !(log_config.chat&16) ))) //if WOE ONLY flag is off or AGIT is OFF - log_chat("P", sd->status.party_id, sd->status.char_id, sd->status.account_id, (char*)mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y, NULL, mes); + + // Chat logging type 'P' / Party Chat + if( log_config.chat&4 && !(agit_flag && log_config.chat&32) ) + log_chat("P", sd->status.party_id, sd->status.char_id, sd->status.account_id, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y, NULL, mes); return 0; } |