summary refs log tree commit diff stats
path: root/src/common/inbound.c
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-06-18 20:34:11 +0100
committerPatrick <tingping@tingping.se>2021-06-19 20:16:40 -0500
commit08e13a3ac58896fd9a0a2e5a004f9b180d1dfeeb (patch)
tree287ed9404fb5bb634542980be472844eea7b4a17 /src/common/inbound.c
parentf5926fbd2392476f918fb1ab2a405c1c451359a1 (diff)
Replace identify-msg support with solanum.chat/identify-msg.
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r--src/common/inbound.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c
index 8b48bd7f..3c505a57 100644
--- a/src/common/inbound.c
+++ b/src/common/inbound.c
@@ -190,7 +190,7 @@ inbound_privmsg (server *serv, char *from, char *ip, char *text, int id,
 
 		if (ip && ip[0])
 			set_topic (sess, ip, ip);
-		inbound_chanmsg (serv, NULL, NULL, from, text, FALSE, id, tags_data);
+		inbound_chanmsg (serv, NULL, NULL, from, text, FALSE, tags_data->identified, tags_data);
 		return;
 	}
 
@@ -1656,7 +1656,7 @@ inbound_toggle_caps (server *serv, const char *extensions_str, gboolean enable)
 	{
 		const char *extension = extensions[i];
 
-		if (!strcmp (extension, "identify-msg"))
+		if (!strcmp (extension, "solanum.chat/identify-msg"))
 			serv->have_idmsg = enable;
 		else if (!strcmp (extension, "multi-prefix"))
 			serv->have_namesx = enable;
@@ -1713,8 +1713,6 @@ inbound_cap_del (server *serv, char *nick, char *extensions,
 }
 
 static const char * const supported_caps[] = {
-	"identify-msg",
-
 	/* IRCv3.1 */
 	"multi-prefix",
 	"away-notify",
@@ -1737,6 +1735,9 @@ static const char * const supported_caps[] = {
 
 	/* Twitch */
 	"twitch.tv/membership",
+
+	/* Solanum */
+	"solanum.chat/identify-msg",
 };
 
 static int