summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-31 01:44:18 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-31 01:44:18 +0000
commitf18a667f920daad8874232929c3f7b4680f33276 (patch)
tree26d362aa0db6f1959baf4a225a822b4f06493003 /src/map/clif.c
parent54205b1071d55bdd6fef570b6880e3b1970be50d (diff)
downloadhercules-f18a667f920daad8874232929c3f7b4680f33276.tar.gz
hercules-f18a667f920daad8874232929c3f7b4680f33276.tar.bz2
hercules-f18a667f920daad8874232929c3f7b4680f33276.tar.xz
hercules-f18a667f920daad8874232929c3f7b4680f33276.zip
- Fixed @item so it only displays message "Item created" on success.
- Changed @raisemap to also function as "@healmap". - Changed txt_time() to omit days/hours/seconds if there are none. - Also applied the 'min_chat_delay' to @main, @pettalk and @homtalk. - Fixed a warning in skill.c (bugreport:6593) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16722 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 267c315cb..6b03142c3 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10002,6 +10002,11 @@ void clif_parse_WisMessage(int fd, struct map_session_data* sd)
if(!sd->state.mainchat)
clif_displaymessage(fd, msg_txt(388)); // You should enable main chat with "@main on" command.
else {
+ if ( battle_config.min_chat_delay ) {
+ if( DIFF_TICK(sd->cantalk_tick, gettick()) > 0 )
+ return;
+ sd->cantalk_tick = gettick() + battle_config.min_chat_delay;
+ }
// send the main message using inter-server system
intif_main_message( sd, message );
}