summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorsketchyphoenix <sketchyphoenix@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-12-18 02:36:01 +0000
committersketchyphoenix <sketchyphoenix@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-12-18 02:36:01 +0000
commit1fe43024299ca9bbe18791a86080b459c96c3227 (patch)
treefb9ab94a9cf0d1ef48b126fa96d1eb27b4f2894c /src/map/clif.c
parent25aa6a70d711dbc1da0d02ca5f7ec9f8bd9be54e (diff)
downloadhercules-1fe43024299ca9bbe18791a86080b459c96c3227.tar.gz
hercules-1fe43024299ca9bbe18791a86080b459c96c3227.tar.bz2
hercules-1fe43024299ca9bbe18791a86080b459c96c3227.tar.xz
hercules-1fe43024299ca9bbe18791a86080b459c96c3227.zip
Removed charcommand code while allowing atcommand code to support its functionality.
Charcommands still retain their '#' symbol but now looks for a character name as the first parameter instead of last. Atcommand configs now support charcommand level configurations by comma seperation (e.g. 60,99) As a result of this, all atcommands that don't affect multiple users already (@kickall, @doom, @mapexit) are capable of remote usage. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13403 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 8e9ec4cf9..5f258a5fa 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -23,7 +23,6 @@
#include "script.h"
#include "skill.h"
#include "atcommand.h"
-#include "charcommand.h"
#include "intif.h"
#include "battle.h"
#include "mob.h"
@@ -8215,7 +8214,7 @@ void clif_parse_GlobalMessage(int fd, struct map_session_data* sd)
if( !clif_process_message(sd, 0, &name, &namelen, &message, &messagelen) )
return;
- if( is_atcommand(fd, sd, message) || is_charcommand(fd, sd, message) )
+ if( is_atcommand(fd, sd, message) )
return;
if( sd->sc.data[SC_BERSERK] || (sd->sc.data[SC_NOCHAT] && sd->sc.data[SC_NOCHAT]->val1&MANNER_NOCHAT) )
@@ -8526,7 +8525,7 @@ void clif_parse_WisMessage(int fd, struct map_session_data* sd)
if( !clif_process_message(sd, 1, &target, &namelen, &message, &messagelen) )
return;
- if (is_atcommand(fd, sd, message) || is_charcommand(fd, sd, message) )
+ if (is_atcommand(fd, sd, message) )
return;
if (sd->sc.data[SC_BERSERK] || (sd->sc.data[SC_NOCHAT] && sd->sc.data[SC_NOCHAT]->val1&MANNER_NOCHAT))
@@ -10053,7 +10052,7 @@ void clif_parse_PartyMessage(int fd, struct map_session_data* sd)
if( !clif_process_message(sd, 0, &name, &namelen, &message, &messagelen) )
return;
- if( is_atcommand(fd, sd, message) || is_charcommand(fd, sd, message) )
+ if( is_atcommand(fd, sd, message) )
return;
if( sd->sc.data[SC_BERSERK] || (sd->sc.data[SC_NOCHAT] && sd->sc.data[SC_NOCHAT]->val1&MANNER_NOCHAT) )
@@ -10331,7 +10330,7 @@ void clif_parse_GuildMessage(int fd, struct map_session_data* sd)
if( !clif_process_message(sd, 0, &name, &namelen, &message, &messagelen) )
return;
- if( is_atcommand(fd, sd, message) || is_charcommand(fd, sd, message) )
+ if( is_atcommand(fd, sd, message) )
return;
if( sd->sc.data[SC_BERSERK] || (sd->sc.data[SC_NOCHAT] && sd->sc.data[SC_NOCHAT]->val1&MANNER_NOCHAT) )