diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-15 20:02:45 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-15 20:02:45 +0200 |
commit | d857c91a59a8a04a488ca390ceea77020b5f613a (patch) | |
tree | 359e4694c417ea11c834d0e948957d7a2d6b7103 /src | |
parent | 518c0e3ae35d053140e6b292cb78d65d09a9a237 (diff) | |
download | weechat-d857c91a59a8a04a488ca390ceea77020b5f613a.zip |
irc: add comments in "cap" callback
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |