summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-05 11:06:48 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-05 11:06:48 +0000
commitecbe6aa5b86c57909ee1a7369ceda6b9348fdb1a (patch)
treeb3a459940f3ccb52de4b0e11189756f49ae603e2 /src/map/atcommand.c
parent887a23e815dc20731a423c726b22d0d0a3974d93 (diff)
downloadhercules-ecbe6aa5b86c57909ee1a7369ceda6b9348fdb1a.tar.gz
hercules-ecbe6aa5b86c57909ee1a7369ceda6b9348fdb1a.tar.bz2
hercules-ecbe6aa5b86c57909ee1a7369ceda6b9348fdb1a.tar.xz
hercules-ecbe6aa5b86c57909ee1a7369ceda6b9348fdb1a.zip
* Added allow_atcommand_when_mute
* Temporarily leaving the changing guild emblems requiring Glory of Guild feature only for TXT until the SQL char-server supports guild skills fully * Modified battle_range again to check if src's type is a player first * Modified skill_nocast_db git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@459 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 7accfa639..da3faa97f 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -670,6 +670,11 @@ is_atcommand(const int fd, struct map_session_data* sd, const char* message, int
nullpo_retr(AtCommand_None, sd);
+ if (!battle_config.allow_atcommand_when_mute &&
+ sd->sc_count && sd->sc_data[SC_NOCHAT].timer != -1) {
+ return AtCommand_Unknown;
+ }
+
if (!message || !*message)
return AtCommand_None;