diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-25 21:35:10 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-09-25 21:35:10 +0000 |
commit | a842a48f1de74a1652a211d27c86dd1b07ea927f (patch) | |
tree | 0122362f2d02c9e5edefb47078603dc29a58ce71 /src | |
parent | 0bdd239ebf26779ee70ffca7f50d0a9c7b01d2c7 (diff) | |
download | hercules-a842a48f1de74a1652a211d27c86dd1b07ea927f.tar.gz hercules-a842a48f1de74a1652a211d27c86dd1b07ea927f.tar.bz2 hercules-a842a48f1de74a1652a211d27c86dd1b07ea927f.tar.xz hercules-a842a48f1de74a1652a211d27c86dd1b07ea927f.zip |
- Disabled again client-self-muting since it's causing too much trouble.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8868 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 37 |
1 files changed, 8 insertions, 29 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 14b3a06b1..9252c2404 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -8642,6 +8642,10 @@ void clif_parse_GlobalMessage(int fd, struct map_session_data *sd) { // S 008c < return;
}
+ if ((is_atcommand(fd, sd, message, 0) != AtCommand_None) ||
+ (is_charcommand(fd, sd, message,0) != CharCommand_None))
+ return;
+
if (sd->sc.count &&
(sd->sc.data[SC_BERSERK].timer != -1 ||
(sd->sc.data[SC_NOCHAT].timer != -1 && sd->sc.data[SC_NOCHAT].val1&MANNER_NOCHAT)))
@@ -8654,15 +8658,10 @@ void clif_parse_GlobalMessage(int fd, struct map_session_data *sd) { // S 008c < sd->cantalk_tick = gettick() + battle_config.min_chat_delay;
}
- // To prevent client auto-muting, always send global chat back to self.
memcpy(WFIFOP(fd,0), RFIFOP(fd,0), RFIFOW(fd,2));
WFIFOW(fd,0) = 0x8e;
WFIFOSET(fd, WFIFOW(fd,2));
- if ((is_atcommand(fd, sd, message, 0) != AtCommand_None) ||
- (is_charcommand(fd, sd, message,0) != CharCommand_None))
- return;
-
if (RFIFOW(fd,2)+4 < 128)
buf = buf2; //Use a static buffer.
else
@@ -9011,7 +9010,6 @@ void clif_parse_Wis(int fd, struct map_session_data *sd) { // S 0096 <len>.w <ni if ((is_charcommand(fd, sd, gm_command, 0) != CharCommand_None) ||
(is_atcommand(fd, sd, gm_command, 0) != AtCommand_None)) {
if(gm_command) aFree(gm_command);
- clif_wis_end(fd, 0); // Send success to prevent client from self-muting.
return;
}
if(gm_command) aFree(gm_command);
@@ -10365,18 +10363,8 @@ void clif_parse_PartyMessage(int fd, struct map_session_data *sd) { if (is_charcommand(fd, sd, (char*)RFIFOP(fd,4), 0) != CharCommand_None ||
is_atcommand(fd, sd, (char*)RFIFOP(fd,4), 0) != AtCommand_None)
- {
- char *mes = RFIFOP(fd,4);
- int len = RFIFOW(fd,2)-4;
- //Send text to self to prevent client-muting.
- WFIFOHEAD(fd, len+8);
- WFIFOW(fd,0)=0x109;
- WFIFOW(fd,2)=len+8;
- WFIFOL(fd,4)=sd->status.account_id;
- memcpy(WFIFOP(fd,8),mes,len);
- WFIFOSET(fd, len+8);
return;
- }
+
if (sd->sc.count && (
sd->sc.data[SC_BERSERK].timer!=-1 ||
(sd->sc.data[SC_NOCHAT].timer!=-1 && sd->sc.data[SC_NOCHAT].val1&MANNER_NOCHAT)
@@ -10597,17 +10585,8 @@ void clif_parse_GuildMessage(int fd,struct map_session_data *sd) { if (is_charcommand(fd, sd, (char*)RFIFOP(fd, 4), 0) != CharCommand_None ||
is_atcommand(fd, sd, (char*)RFIFOP(fd, 4), 0) != AtCommand_None)
- {
- char *mes = RFIFOP(fd,4);
- int len = RFIFOW(fd,2)-4;
- //Send text to self to prevent client-muting.
- WFIFOHEAD(fd, len+4);
- WFIFOW(fd, 0) = 0x17f;
- WFIFOW(fd, 2) = len+4;
- memcpy(WFIFOP(fd,4), mes, len);
- WFIFOSET(fd, len+4);
return;
- }
+
if (sd->sc.count && (
sd->sc.data[SC_BERSERK].timer!=-1 ||
(sd->sc.data[SC_NOCHAT].timer!=-1 && sd->sc.data[SC_NOCHAT].val1&MANNER_NOCHAT)
@@ -10867,7 +10846,8 @@ void clif_parse_GMReqNoChat(int fd,struct map_session_data *sd) limit = 0 - limit;
//If type is 2 and the ids don't match, this is a crafted hacked packet!
- if (type == 2 && sd->bl.id != dstsd->bl.id)
+ //Disabled because clients keep self-muting when you give players public @ commands... [Skotlex]
+ if (type == 2/* && sd->bl.id != dstsd->bl.id*/)
return;
if (
@@ -10882,7 +10862,6 @@ void clif_parse_GMReqNoChat(int fd,struct map_session_data *sd) dstsd->status.manner = 0;
status_change_end(bl,SC_NOCHAT,-1);
}
- ShowDebug("GMReqNoChat: name:%s type:%d limit:%d manner:%d\n", dstsd->status.name, type, limit, dstsd->status.manner);
}
return;
|