summaryrefslogtreecommitdiff
path: root/src/map/atcommand.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-12 23:42:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-14 19:46:36 +0300
commitba9c1cc16cb8f696a50d0ae928b6e8a19086405b (patch)
tree932617ad5e14712fb78043875c6e9a2f07e59639 /src/map/atcommand.h
parent41ba7b50888610d43dcf3bcccb77ee3debe13532 (diff)
downloadhercules-ba9c1cc16cb8f696a50d0ae928b6e8a19086405b.tar.gz
hercules-ba9c1cc16cb8f696a50d0ae928b6e8a19086405b.tar.bz2
hercules-ba9c1cc16cb8f696a50d0ae928b6e8a19086405b.tar.xz
hercules-ba9c1cc16cb8f696a50d0ae928b6e8a19086405b.zip
Add missing checks into atcommand.c
Diffstat (limited to 'src/map/atcommand.h')
-rw-r--r--src/map/atcommand.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/atcommand.h b/src/map/atcommand.h
index ccc7d3725..6c8dbf9ef 100644
--- a/src/map/atcommand.h
+++ b/src/map/atcommand.h
@@ -114,6 +114,8 @@ struct atcommand_interface {
void (*get_jail_time) (int jailtime, int* year, int* month, int* day, int* hour, int* minute);
int (*cleanfloor_sub) (struct block_list *bl, va_list ap);
int (*mutearea_sub) (struct block_list *bl,va_list ap);
+ void (*getring) (struct map_session_data* sd);
+ void (*channel_help) (int fd, const char *command, bool can_create);
/* */
void (*commands_sub) (struct map_session_data* sd, const int fd, AtCommandType type);
void (*cmd_db_clear) (void);
@@ -134,6 +136,7 @@ void atcommand_defaults(void);
HPShared struct atcommand_interface *atcommand;
/* stay here */
-#define ACMD(x) static bool atcommand_ ## x (const int fd, struct map_session_data* sd, const char* command, const char* message, struct AtCommandInfo *info)
+#define ACMD(x) static bool atcommand_ ## x (const int fd, struct map_session_data* sd, const char* command, const char* message, struct AtCommandInfo *info) __attribute__((nonnull (2, 3, 4, 5))); \
+ static bool atcommand_ ## x (const int fd, struct map_session_data* sd, const char* command, const char* message, struct AtCommandInfo *info)
#endif /* MAP_ATCOMMAND_H */