aboutsummaryrefslogtreecommitdiffstats
path: root/irc_send.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@google.com>2010-08-09 14:39:50 +0100
committerWilmer van der Gaast <wilmer@google.com>2010-08-09 14:39:50 +0100
commitf32c14c649e854fbfb7b8e495e2ebc8459ee5b6f (patch)
treec5cc5e5b972b8e8381aab505dd44a2c57ec46575 /irc_send.c
parentb8906261293b34d8c792bd1f48df10144a8a8f10 (diff)
Oops. We're using channel mode +h (halfop) for a while already, but so far
without advertising this in 005. This confuses irssi ans possibly other clients. Fixing that now. Also adding SAFELIST which may make some clients less afraid of using /LIST, and CHANNELLEN with an artifical limit (the code has no max. channel name limit).
Diffstat (limited to 'irc_send.c')
-rw-r--r--irc_send.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/irc_send.c b/irc_send.c
index 003e0625..cb387059 100644
--- a/irc_send.c
+++ b/irc_send.c
@@ -43,9 +43,10 @@ void irc_send_login( irc_t *irc )
irc_send_num( irc, 2, ":Host %s is running BitlBee " BITLBEE_VERSION " " ARCH "/" CPU ".", irc->root->host );
irc_send_num( irc, 3, ":%s", IRCD_INFO );
irc_send_num( irc, 4, "%s %s %s %s", irc->root->host, BITLBEE_VERSION, UMODES UMODES_PRIV, CMODES );
- irc_send_num( irc, 5, "PREFIX=(ov)@+ CHANTYPES=%s CHANMODES=,,,%s NICKLEN=%d NETWORK=BitlBee "
- "CASEMAPPING=rfc1459 MAXTARGETS=1 WATCH=128 :are supported by this server",
- CTYPES, CMODES, MAX_NICK_LENGTH - 1 );
+ irc_send_num( irc, 5, "PREFIX=(ohv)@%%+ CHANTYPES=%s CHANMODES=,,,%s NICKLEN=%d CHANNELLEN=%d "
+ "NETWORK=BitlBee SAFELIST CASEMAPPING=rfc1459 MAXTARGETS=1 WATCH=128 "
+ ":are supported by this server",
+ CTYPES, CMODES, MAX_NICK_LENGTH - 1, MAX_NICK_LENGTH - 1 );
irc_send_motd( irc );
}