aboutsummaryrefslogtreecommitdiffstats
path: root/irc_send.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-05-03 00:53:59 -0300
committerdequis <dx@dxzone.com.ar>2015-05-05 12:14:01 -0300
commit2d93f113374e455f44e94869a862fb87520c225d (patch)
treef40fa3498f5ecbf2a2c76ef3d572d5e29378b00c /irc_send.c
parentcc8cf750c68a4308eff984eb594484f4c81f05f8 (diff)
irc_send_join: send topic before names
Also don't send modes - clients are supposed to request that if they need it.
Diffstat (limited to 'irc_send.c')
-rw-r--r--irc_send.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/irc_send.c b/irc_send.c
index b53e7315..3da725a4 100644
--- a/irc_send.c
+++ b/irc_send.c
@@ -174,11 +174,10 @@ void irc_send_join(irc_channel_t *ic, irc_user_t *iu)
irc_write(irc, ":%s!%s@%s JOIN :%s", iu->nick, iu->user, iu->host, ic->name);
if (iu == irc->user) {
- irc_write(irc, ":%s MODE %s +%s", irc->root->host, ic->name, ic->mode);
- irc_send_names(ic);
if (ic->topic && *ic->topic) {
irc_send_topic(ic, FALSE);
}
+ irc_send_names(ic);
}
}