From d857c91a59a8a04a488ca390ceea77020b5f613a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 15 May 2023 20:02:45 +0200 Subject: [PATCH] irc: add comments in "cap" callback --- src/plugins/irc/irc-protocol.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index b0e8427fb..4e7d4d961 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -926,6 +926,7 @@ IRC_PROTOCOL_CALLBACK(cap) if (strcmp (params[1], "LS") == 0) { + /* list of capabilities supported by the server */ if (num_params < 3) return WEECHAT_RC_OK; @@ -1011,6 +1012,7 @@ IRC_PROTOCOL_CALLBACK(cap) } else if (strcmp (params[1], "LIST") == 0) { + /* list of capabilities currently enabled */ if (num_params < 3) return WEECHAT_RC_OK; @@ -1092,6 +1094,7 @@ IRC_PROTOCOL_CALLBACK(cap) } else if (strcmp (params[1], "ACK") == 0) { + /* capabilities acknowledged */ if (num_params < 3) return WEECHAT_RC_OK; @@ -1200,6 +1203,7 @@ IRC_PROTOCOL_CALLBACK(cap) } else if (strcmp (params[1], "NAK") == 0) { + /* capabilities rejected */ if (num_params < 3) return WEECHAT_RC_OK; @@ -1215,6 +1219,7 @@ IRC_PROTOCOL_CALLBACK(cap) } else if (strcmp (params[1], "NEW") == 0) { + /* new capabilities available */ if (num_params < 3) return WEECHAT_RC_OK; @@ -1266,6 +1271,7 @@ IRC_PROTOCOL_CALLBACK(cap) } else if (strcmp (params[1], "DEL") == 0) { + /* capabilities no longer available */ if (num_params < 3) return WEECHAT_RC_OK;