mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
enable irc cap ls 302
This commit is contained in:
parent
f3e037f434
commit
e0ff13f6c1
@ -240,7 +240,7 @@ static void server_init(IRC_SERVER_REC *server)
|
||||
|
||||
irc_cap_toggle(server, "multi-prefix", TRUE);
|
||||
|
||||
irc_send_cmd_now(server, "CAP LS");
|
||||
irc_send_cmd_now(server, "CAP LS " CAP_LS_VERSION);
|
||||
|
||||
if (conn->password != NULL && *conn->password != '\0') {
|
||||
/* send password */
|
||||
|
@ -5,6 +5,8 @@
|
||||
#include <irssi/src/core/servers.h>
|
||||
#include <irssi/src/irc/core/modes.h>
|
||||
|
||||
#define CAP_LS_VERSION "302"
|
||||
|
||||
/* returns IRC_SERVER_REC if it's IRC server, NULL if it isn't */
|
||||
#define IRC_SERVER(server) \
|
||||
PROTO_CHECK_CAST(SERVER(server), IRC_SERVER_REC, chat_type, "IRC")
|
||||
|
Loading…
Reference in New Issue
Block a user