summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-01-22 01:06:07 +0100
committerHaru <haru@dotalux.com>2015-01-24 14:37:25 +0100
commitfe55c7980099b2813a182cdfcc571df705601a4a (patch)
tree367bbfe270fbb8ccdf31d57fe5b2714cf2ec46f6 /src/map/guild.c
parentfc50b63d454f59620e0d3ef6674bd9ae54a6175f (diff)
downloadhercules-fe55c7980099b2813a182cdfcc571df705601a4a.tar.gz
hercules-fe55c7980099b2813a182cdfcc571df705601a4a.tar.bz2
hercules-fe55c7980099b2813a182cdfcc571df705601a4a.tar.xz
hercules-fe55c7980099b2813a182cdfcc571df705601a4a.zip
Minor channel system refactoring
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 2ee76ba98..3e71e99dc 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -472,13 +472,7 @@ int guild_recv_info(struct guild *sg) {
g->instances = 0;
idb_put(guild->db,sg->guild_id,g);
if (channel->config->ally) {
- struct channel_data *chan;
-
- CREATE(chan, struct channel_data , 1);
- safestrncpy(chan->name, channel->config->ally_name, HCS_NAME_LENGTH);
- chan->type = HCS_TYPE_ALLY;
-
- channel->create(chan, NULL, NULL, channel->config->ally_color);
+ struct channel_data *chan = channel->create(HCS_TYPE_ALLY, channel->config->ally_name, channel->config->ally_color);
if (channel->config->ally_autojoin) {
struct s_mapiterator* iter = mapit_getallusers();
struct guild *tg[MAX_GUILDALLIANCE];