diff options
author | Haru <haru@dotalux.com> | 2015-01-22 19:37:07 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-01-24 14:37:26 +0100 |
commit | d355711bbb75c08d0326f737432998a95eebaffb (patch) | |
tree | 494fcb26dcaacd50998be2a97c7a885e5fbbfd93 /src/map/channel.h | |
parent | d7f99f52e93aded2f0b8802f956f335d7be45a04 (diff) | |
download | hercules-d355711bbb75c08d0326f737432998a95eebaffb.tar.gz hercules-d355711bbb75c08d0326f737432998a95eebaffb.tar.bz2 hercules-d355711bbb75c08d0326f737432998a95eebaffb.tar.xz hercules-d355711bbb75c08d0326f737432998a95eebaffb.zip |
Channels refactoring: quit, leave, delete
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/channel.h')
-rw-r--r-- | src/map/channel.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/map/channel.h b/src/map/channel.h index 39127f3b9..b518dfb8e 100644 --- a/src/map/channel.h +++ b/src/map/channel.h @@ -88,6 +88,8 @@ struct channel_interface { struct channel_data *(*search) (const char *name, struct map_session_data *sd); struct channel_data *(*create) (enum channel_types type, const char *name, unsigned char color); + void (*delete) (struct channel_data *chan); + void (*set_password) (struct channel_data *chan, const char *password); enum channel_operation_status (*ban) (struct channel_data *chan, const struct map_session_data *ssd, struct map_session_data *tsd); enum channel_operation_status (*unban) (struct channel_data *chan, const struct map_session_data *ssd, struct map_session_data *tsd); @@ -96,14 +98,15 @@ struct channel_interface { void (*send) (struct channel_data *chan, struct map_session_data *sd, const char *msg); void (*join_sub) (struct channel_data *chan, struct map_session_data *sd, bool stealth); enum channel_operation_status (*join) (struct channel_data *chan, struct map_session_data *sd, const char *password, bool silent); - void (*leave) (struct channel_data *chan, struct map_session_data *sd); - void (*delete) (struct channel_data *chan); - void (*map_join) (struct map_session_data *sd); + void (*leave_sub) (struct channel_data *chan, struct map_session_data *sd); void (*quit) (struct map_session_data *sd); - void (*quit_guild) (struct map_session_data *sd); + + void (*map_join) (struct map_session_data *sd); void (*guild_join) (struct guild *g1,struct guild *g2); void (*guild_leave) (struct guild *g1,struct guild *g2); + void (*quit_guild) (struct map_session_data *sd); + void (*config_read) (void); }; |