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/guild.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/guild.c')
-rw-r--r-- | src/map/guild.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/map/guild.c b/src/map/guild.c index 6b7dcbf65..c5ce246b1 100644 --- a/src/map/guild.c +++ b/src/map/guild.c @@ -989,11 +989,9 @@ int guild_send_message(struct map_session_data *sd,char *mes,int len) intif_guild_message(sd->status.guild_id,sd->status.account_id,mes,len); guild_recv_message(sd->status.guild_id,sd->status.account_id,mes,len); - //Chatlogging type 'G' - if(log_config.chat&1 //we log everything then - || ( log_config.chat&8 //if Guild bit is on - && ( !agit_flag || !(log_config.chat&16) ))) //if WOE ONLY flag is off or AGIT is OFF - log_chat("G", sd->status.guild_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 'G' / Guild Chat + if( log_config.chat&8 && !(agit_flag && log_config.chat&32) ) + log_chat("G", sd->status.guild_id, sd->status.char_id, sd->status.account_id, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y, NULL, mes); return 0; } |