From 6d58052c4ab3cf6b72aa66e3212a48b3f493c577 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Wed, 4 Sep 2019 14:27:06 +0200 Subject: [PATCH] enable self-message support --- src/irc/core/irc-servers.c | 1 + src/irc/core/irc-servers.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index 0fca78a0..8251c882 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -241,6 +241,7 @@ static void server_init(IRC_SERVER_REC *server) irc_cap_toggle(server, CAP_AWAY_NOTIFY, TRUE); irc_cap_toggle(server, CAP_CHGHOST, TRUE); irc_cap_toggle(server, CAP_ACCOUNT_NOTIFY, TRUE); + irc_cap_toggle(server, CAP_SELF_MESSAGE, TRUE); irc_send_cmd_now(server, "CAP LS " CAP_LS_VERSION); diff --git a/src/irc/core/irc-servers.h b/src/irc/core/irc-servers.h index f74b8210..2757db0d 100644 --- a/src/irc/core/irc-servers.h +++ b/src/irc/core/irc-servers.h @@ -25,6 +25,7 @@ #define CAP_AWAY_NOTIFY "away-notify" #define CAP_CHGHOST "chghost" #define CAP_ACCOUNT_NOTIFY "account-notify" +#define CAP_SELF_MESSAGE "znc.in/self-message" /* returns IRC_SERVER_REC if it's IRC server, NULL if it isn't */ #define IRC_SERVER(server) \