summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-19 13:26:02 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-19 13:26:02 +0000
commit3bd682b3cb3507c8a57fa6930475808981fd0663 (patch)
treebfcc3b1a81389c080f43778de9e9a2a3285bf9c5 /src/map/atcommand.c
parent35874a560ee89397e14eac3e7f40fc0251d67053 (diff)
downloadhercules-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/atcommand.c')
-rw-r--r--src/map/atcommand.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index b824774c7..6a903bccf 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -9487,8 +9487,7 @@ int atcommand_clone(const int fd, struct map_session_data* sd, const char* comma
/*===================================
* Main chat [LuzZza]
* Usage: @main <on|off|message>
- *-----------------------------------
- */
+ *-----------------------------------*/
int atcommand_main(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
if(strlen(message) > 0) {
@@ -9521,6 +9520,10 @@ int atcommand_main(const int fd, struct map_session_data* sd, const char* comman
// main chat message. 0xFE000000 is invalid color, same using
// 0xFF000000 for simple (not colored) GM messages. [LuzZza]
intif_announce(atcmd_output, strlen(atcmd_output) + 1, 0xFE000000, 0);
+
+ // Chat logging type 'M' / Main Chat
+ if( log_config.chat&16 && !(agit_flag && log_config.chat&32) )
+ log_chat("M", 0, sd->status.char_id, sd->status.account_id, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y, NULL, message);
}
} else {