summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-19 14:07:32 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-19 14:07:32 +0000
commit14cfaf27b57916b61297b8d0fa4624dee8eae413 (patch)
tree629977912ea8a8b9a861878e483640ddd1a17420 /src/map/atcommand.c
parentc41360ba01534eb4864aee95eb1adce8c9606c95 (diff)
downloadhercules-14cfaf27b57916b61297b8d0fa4624dee8eae413.tar.gz
hercules-14cfaf27b57916b61297b8d0fa4624dee8eae413.tar.bz2
hercules-14cfaf27b57916b61297b8d0fa4624dee8eae413.tar.xz
hercules-14cfaf27b57916b61297b8d0fa4624dee8eae413.zip
- Simplified the code for @storage
- Added echoing messages back to self when using @/# commands on whispers and party/guild messages, to prevent the client from muting yourself. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8810 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 9ac6d6862..8d3756441 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -2194,21 +2194,13 @@ int atcommand_storage(
const int fd, struct map_session_data* sd,
const char* command, const char* message)
{
- struct storage *stor; //changes from Freya/Yor
nullpo_retr(-1, sd);
- if (sd->state.storage_flag) {
+ if (storage_storageopen(sd) == 1)
+ { //Already open.
clif_displaymessage(fd, msg_txt(250));
return -1;
}
-
- if ((stor = account2storage2(sd->status.account_id)) != NULL && stor->storage_status == 1) {
- clif_displaymessage(fd, msg_txt(250));
- return -1;
- }
-
- storage_storageopen(sd);
-
return 0;
}