summaryrefslogtreecommitdiff
path: root/src/irc
AgeCommit message (Collapse)Author
2018-01-24Accept CAPs with an empty value (KEY=)LemonBoy
2018-01-24Address some minor stylish nitsLemonBoy
2018-01-07Fix a problem with multiline responsesLemonBoy
Do not clear the whole table every time a response is received.
2018-01-07Nicer error message when a duplicate CAP in LSLemonBoy
2018-01-07Match LS instead of checking the first letter onlyLemonBoy
2018-01-07Command names may be in lower-caseLemonBoy
Do not take the string case into account when comparing the command name.
2018-01-07Simplify the codeLemonBoy
Early exit, simpler code.
2018-01-07Keep processing the CAPs on errorLemonBoy
If an invalid CAP is found we keep going by parsing the next one.
2018-01-07Prevent a memory leakLemonBoy
When a CAP DEL is received the key/val pair is not stored in the hashtable at all so just free them when we're done.
2018-01-07Miscellaneous fixesLemonBoy
Stylistic stuff, please ignore.
2018-01-07Prevent a NULL pointer deferenceLemonBoy
Always create the cap_supported table when a CAP event is received.
2018-01-07Use strcmp instead of g_strcmp0LemonBoy
There's no need to use the latter.
2018-01-07Properly dispose the GSList chainsLemonBoy
We forgot to free the link and the data, oops.
2018-01-07Handle CAP {ADD,DEL} from cap-notifyLemonBoy
This is the last piece of the puzzle.
2018-01-07Parse multiline responses to CAP LSLemonBoy
The parsing logic isn't too elegant because of the optional parameter used for signaling if a response has a continuation one.
2018-01-07Don't free the hash table if there's noneLemonBoy
Glib doesn't like that and shows a harmless warning.
2018-01-07Factor out the parsing functionLemonBoy
This is also needed for CAP NEW and CAP DEL.
2018-01-07Parse the K/V form in CAP LSLemonBoy
This is a prerequisite for the IRC v3.2 compliance.
2018-01-07Merge pull request #804 from ailin-nemui/patch-1ailin-nemui
handle an already used nick different from the one we send
2018-01-05Update irc-nicklist.cailin-nemui
move altnick check before the nick correction code
2018-01-03do not record topic change time when sender is blankailin-nemui
2017-12-11Merge pull request #766 from horgh/horgh/mode-parsingailin-nemui
Fix MODE parameter parsing
2017-12-02Update NULL comparison style and be C89 compatibleWill Storey
2017-11-30fix commentsailin-nemui
2017-11-27Revert initializing pointers to NULLWill Storey
To maintain C89 compatibility
2017-11-10use enumailin-nemui
2017-11-01show initial nick and name on first startailin-nemui
2017-10-24Strip : from <trailing> parametersWill Storey
This is to fix #601. The function used to extract the mode string assumed that ":" would only occur in a particular spot. This lead to the possibility that ":" could be treated as part of things like nicknames or mode arguments, where it should have been stripped as part of protocol escaping.
2017-10-20Merge branch 'fix-16' into 'security'Nei
Prevent a OOB read when parsing IRCNet ! channels See merge request irssi/irssi!22
2017-10-20Merge branch 'fix-gl-15' into 'security'Nei
Don't proceed with cmd_msg if there was an error splitting msg See merge request irssi/irssi!21
2017-10-20Merge branch 'fix-dcc' into 'security'Nei
fix dcc See merge request irssi/irssi!20
2017-10-20Make split functions return an array with NULL instead of NULLJoseph Bisch
This avoids undefined behavior in functions that call these split functions and expect an array back instead of just a NULL pointer.
2017-10-20Merge branch 'fix-gl-13' into 'security'Nei
Fix use after free when channel is destroyed inbetween being synced See merge request irssi/irssi!19
2017-10-20fix dcc issueailin-nemui
2017-10-19Prevent a OOB read when parsing IRCNet ! channelsLemonBoy
Make sure the string has enough data. Fixes #16
2017-10-14Changes based on comments in pull #771.Paul Townsend
2017-10-11Add alternate_nick as a network-specific property.Paul Townsend
2017-10-08Fix segfault in query_remove_allJoseph Bisch
It is possible for rec to be NULL in query_remove_all, resulting in a segfault. So return without doing anything if rec is NULL.
2017-10-08fix uaf in chanquery moduleailin-nemui
the chanquery needs to be removed in any case if a channel rec is destroyed, regardless of any state Fixes GL#13
2017-07-25Allow the user to clear the sasl-related fieldsLemonBoy
There was no easy way for the user to disable the SASL authentication or to clear the username/password once the network was created. Closes #718
2017-05-30Merge branch 'fix-gl9' into 'security'Nei
Fix dcc_request where addr is NULL See merge request !13
2017-05-29Fix dcc_request where addr is NULLJoseph Bisch
2017-05-29Fix oob read of one byte in get_file_params_count{,_resume}Joseph Bisch
We can use continue to handle cases such as: "ab<space><space>c"
2017-03-07fix dcc getailin-nemui
fixes #656
2017-03-06Revert "Quote the filename when dcc requests are auto accepted."ailin-nemui
2017-03-04Merge pull request #658 from LemonBoy/dcc-autoacceptailin-nemui
Quote the filename when dcc requests are auto accepted.
2017-02-22Handle file names with quotes.LemonBoy
Let's repurpose escape_string and make it more flexible by letting us choose the characters to escape.
2017-02-21Quote the filename when dcc requests are auto accepted.LemonBoy
PR #453 forces the user to quote the filenames given to /DCC commands when they contain spaces but the autoget functionality didn't get updated so the filename was always passed without quotes. Closes #656.
2017-02-11notify-ison: Don't send ison before the connection is donedequis
2017-01-24Prevent a memory leak during the processing of the SASL response.LemonBoy
We also get rid of an allocation in the process of doing so.