summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/channel.c b/src/map/channel.c
index 15dcce82e..4331f6767 100644
--- a/src/map/channel.c
+++ b/src/map/channel.c
@@ -479,11 +479,11 @@ void channel_map_join(struct map_session_data *sd)
void channel_irc_join(struct map_session_data *sd)
{
+ struct channel_data *chan = ircbot->channel;
if (sd->state.autotrade || sd->state.standalone)
return;
if (!channel->config->irc_name)
return;
- struct channel_data *chan = ircbot->channel;
if (chan)
channel->join(chan, sd, NULL, false);
}