summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-15 15:05:11 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-15 15:05:11 +0000
commit0aac9d598500a6aadabd1cfb0a9904b877bd5393 (patch)
treeae8e37f7b1ad958e344277dce7e6788c09aa480a /src/map/atcommand.c
parent6bec408e8f75856b0bf17577dc1b1df4e22a5257 (diff)
downloadhercules-0aac9d598500a6aadabd1cfb0a9904b877bd5393.tar.gz
hercules-0aac9d598500a6aadabd1cfb0a9904b877bd5393.tar.bz2
hercules-0aac9d598500a6aadabd1cfb0a9904b877bd5393.tar.xz
hercules-0aac9d598500a6aadabd1cfb0a9904b877bd5393.zip
* Manner system fixing
- better-than-aegis 'red bubble' packet updates; now it shows correctly - added support for /rc, which is basically mute for 60 minutes - fixed typo in r12076 making gm-mute start on the gm instead of target - fixed @mute not ending the status properly when using negative values - adde missing clif_manner_message(), sends info about manner updates git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12079 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index cc6e21874..ea8a1d163 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -6744,10 +6744,18 @@ int atcommand_mute(const int fd, struct map_session_data* sd, const char* comman
return -1;
}
- clif_GM_silence(sd, pl_sd, 0);
- pl_sd->status.manner -= manner;
- if(pl_sd->status.manner < 0)
+ clif_manner_message(sd, 0);
+ clif_manner_message(pl_sd, 5);
+
+ if( pl_sd->status.manner < manner ) {
+ pl_sd->status.manner -= manner;
sc_start(&pl_sd->bl,SC_NOCHAT,100,0,0);
+ } else {
+ pl_sd->status.manner = 0;
+ status_change_end(&pl_sd->bl,SC_NOCHAT,-1);
+ }
+
+ clif_GM_silence(sd, pl_sd, (manner > 0 ? 1 : 0));
return 0;
}