summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorMatias <matiassw@gmail.com>2013-06-25 13:53:51 -0400
committerMatias <matiassw@gmail.com>2013-06-25 13:53:51 -0400
commit25914bae30eced388cf8640eead19fbb11a65ade (patch)
treef4144fbe0220eb19dd2bf8f1aa3135275505ec95 /src/map/atcommand.c
parent884424e83290729598f57502e9a273f502bc1b50 (diff)
downloadhercules-25914bae30eced388cf8640eead19fbb11a65ade.tar.gz
hercules-25914bae30eced388cf8640eead19fbb11a65ade.tar.bz2
hercules-25914bae30eced388cf8640eead19fbb11a65ade.tar.xz
hercules-25914bae30eced388cf8640eead19fbb11a65ade.zip
Revert "- Fixing battle->calc_cardfix applying target's cards twice on PvP/Cart Termination."
This reverts commit 5ed710e084608dbd9aaf3a9af1b12719a938ac43.
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 050e2f572..65da7aa24 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -9017,17 +9017,11 @@ ACMD(channel) {
return false;
}
- if (!message || !*message || sscanf(message, "%s %s %24[^\n]", key, sub1, sub2) < 1) {
- sprintf(atcmd_output, msg_txt(1434), sub2);// Player '%s' was not found
- clif->message(fd, atcmd_output);
- return false;
- }
-
if( sub2[0] == '\0' || ( pl_sd = map_nick2sd(sub2) ) == NULL ) {
- sprintf(atcmd_output, msg_txt(1434), sub2);// Player '%s' was not found
- clif->message(fd, atcmd_output);
- return false;
- }
+ sprintf(atcmd_output, msg_txt(1434), sub2);// Player '%s' was not found
+ clif->message(fd, atcmd_output);
+ return false;
+ }
if( pc_has_permission(pl_sd, PC_PERM_HCHSYS_ADMIN) ) {
clif->message(fd, msg_txt(1464)); // Ban failed, not possible to ban this user.