summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-11-16 17:46:23 +0100
committerGitHub <noreply@github.com>2018-11-16 17:46:23 +0100
commit283d34b2e821097badee727564396d94c266aa96 (patch)
treec18c7ecd98d311e81d20b9cfc844af90c8ef9b8d /src/map/guild.c
parent1db2ef52d603e9944a912fcf350706a7a44202c9 (diff)
parent61016983c4eb29dc4a76050fa8920c6bcdc0a1fd (diff)
downloadhercules-283d34b2e821097badee727564396d94c266aa96.tar.gz
hercules-283d34b2e821097badee727564396d94c266aa96.tar.bz2
hercules-283d34b2e821097badee727564396d94c266aa96.tar.xz
hercules-283d34b2e821097badee727564396d94c266aa96.zip
Merge pull request #2322 from MishimaHaruna/fix-allychat-leaveguild
Fix allychat leaveguild
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index 757dbb445..17bf7fa6b 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -828,6 +828,11 @@ static int guild_member_added(int guild_id, int account_id, int char_id, int fla
//Next line commented because it do nothing, look at guild_recv_info [LuzZza]
//clif->charnameupdate(sd); //Update display name [Skotlex]
+ // Makes the character join their respective guild's channel for #ally chat
+ if (channel->config->ally && channel->config->ally_autojoin) {
+ channel->join(g->channel, sd, "", true);
+ }
+
return 0;
}