Changeset 8fdeaa5


Ignore:
Timestamp:
2015-11-20T16:13:35Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
29ff5c2, fa8f57b
Parents:
80c2f3c
git-author:
dequis <dx@…> (20-11-15 16:08:40)
git-committer:
dequis <dx@…> (20-11-15 16:13:35)
Message:

IRCv3 cap-3.2/sasl-3.2 capabilities (just send sasl mechanism list)

Nothing else needed, i think. No need for multiline replies, cap-notify,
sasl reauthentication just works, and the authentication layer is always
available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_cap.c

    r80c2f3c r8fdeaa5  
    111111}
    112112
    113 /* version can be "302" or NULL, but we don't need cap-3.2 for anything yet */
    114 static void irc_cmd_cap_ls(irc_t *irc, char *version)
     113/* version can be 0, 302, 303, or garbage from user input. thanks user input */
     114static void irc_cmd_cap_ls(irc_t *irc, long version)
    115115{
    116116        int i;
     
    122122                }
    123123                g_string_append(str, supported_caps[i].name);
     124
     125                if (version >= 302 && supported_caps[i].flag == CAP_SASL) {
     126                        g_string_append(str, "=PLAIN");
     127                }
    124128        }
    125129
     
    161165
    162166        if (g_strcasecmp(cmd[1], "LS") == 0) {
    163                 irc_cmd_cap_ls(irc, cmd[2]);
     167                irc_cmd_cap_ls(irc, cmd[2] ? strtol(cmd[2], NULL, 10) : 0);
    164168
    165169        } else if (g_strcasecmp(cmd[1], "LIST") == 0) {
Note: See TracChangeset for help on using the changeset viewer.