summaryrefslogtreecommitdiff
path: root/src/map/charcommand.c
diff options
context:
space:
mode:
authormc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-29 15:33:40 +0000
committermc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-29 15:33:40 +0000
commite31a6d65da3a27e68e65d3ef826afc7d765d3773 (patch)
treeac7f509dfb3fa9acddade4240afc4fd921b49d48 /src/map/charcommand.c
parent0e39e121319f34bd9b401e4c3421f3f01b683b19 (diff)
downloadhercules-e31a6d65da3a27e68e65d3ef826afc7d765d3773.tar.gz
hercules-e31a6d65da3a27e68e65d3ef826afc7d765d3773.tar.bz2
hercules-e31a6d65da3a27e68e65d3ef826afc7d765d3773.tar.xz
hercules-e31a6d65da3a27e68e65d3ef826afc7d765d3773.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@857 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/charcommand.c')
-rw-r--r--src/map/charcommand.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/map/charcommand.c b/src/map/charcommand.c
index 774b32619..f8e3be983 100644
--- a/src/map/charcommand.c
+++ b/src/map/charcommand.c
@@ -27,6 +27,7 @@
#include "npc.h"
#include "trade.h"
#include "core.h"
+#include "showmsg.h"
static char command_symbol = '#';
@@ -1079,16 +1080,16 @@ int charcommand_item(
clif_displaymessage(fd, msg_table[81]); // Your GM level don't authorise you to do this action on this player.
return -1;
}
- } else if(strncasecmp(character,"all")==0 || strncasecmp(character,"everyone")==0){ // 名前がALLなら、接続者全員へ
+ } else if(/* from jA's @giveitem */strcmpi(character,"all")==0 || strcmpi(character,"everyone")==0){
for (i = 0; i < fd_max; i++) {
if (session[i] && (pl_sd = session[i]->session_data)){
- atcommand_giveitem_sub(pl_sd,item_data,number);
- snprintf(output, sizeof output, "You got %s %d.", item_name,number);
- clif_displaymessage(pl_sd->fd, output);
+ charcommand_giveitem_sub(pl_sd,item_data,number);
+ snprintf(tmp_output, sizeof(tmp_output), "You got %s %d.", item_name,number);
+ clif_displaymessage(pl_sd->fd, tmp_output);
}
}
- snprintf(output, sizeof output, "%s received %s %d.","Everyone",item_name,number);
- clif_displaymessage(fd, output);
+ snprintf(tmp_output, sizeof(tmp_output), "%s received %s %d.","Everyone",item_name,number);
+ clif_displaymessage(fd, tmp_output);
} else {
clif_displaymessage(fd, msg_table[3]); // Character not found.
return -1;