Changeset 8fdeaa5
- Timestamp:
- 2015-11-20T16:13:35Z (9 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_cap.c
r80c2f3c r8fdeaa5 111 111 } 112 112 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 */ 114 static void irc_cmd_cap_ls(irc_t *irc, long version) 115 115 { 116 116 int i; … … 122 122 } 123 123 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 } 124 128 } 125 129 … … 161 165 162 166 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); 164 168 165 169 } else if (g_strcasecmp(cmd[1], "LIST") == 0) {
Note: See TracChangeset
for help on using the changeset viewer.