Commit graph

608 commits

Author SHA1 Message Date
Thomas Jager
12e0f85112 Merge pull request #97 from pztrn/pztrn_master
Fix dataraces and possible application stuck
2017-10-03 08:19:41 +02:00
Stanislav N. aka pztrn
5a0a900995 Pings are also wrapped with own sync.Mutex. 2017-10-03 02:19:13 +05:00
Stanislav N. aka pztrn
e39cceace6 Added eventsMutex and wrap all events calls with it.
Due to some "golangish" code this library have possibility to
run into data race when application is working with callbacks.
This commit adds eventsMutex (which is a sync.Mutex), removed
all "golangish" ifs-map reads, and wrap events map read with
sync.Mutex to avoid data races.
2017-10-03 02:03:43 +05:00
Daniel Oaks
a5eafb7ec8 ircmsg: add ParseTags function to allow parsing of tag-like strings arbitrarily 2017-08-24 08:39:31 +10:00
Qais Patankar
c359ee2670 Add WebIRC field 2017-08-18 16:56:08 +01:00
Daniel Oaks
ea7e22b650 ircmsg: Fix tests 2017-08-15 08:55:15 +10:00
Daniel Oaks
26e46394dd ircmsg: Add SourceLine param to represent the line that constructed the current message 2017-08-15 08:39:39 +10:00
Darren
b081c1a2fb Merge pull request #6 from euank/duration
client: remove extraneous `ParseDuration` call
2017-08-13 02:18:54 +01:00
Euan Kemp
60c1696ddc client: remove extraneous ParseDuration call 2017-08-12 17:46:13 -07:00
Daniel Oaks
8db175734c Remove the alpha notifications on a bunch of libs,t hey're stable now 2017-08-09 08:32:11 +10:00
Daniel Oaks
9ae435d3f0 client: Always send tags as a map (never a *map), add IsChannel for easy target checking 2017-07-24 14:27:09 +10:00
Daniel Oaks
c9577d7c34 client: Allow joining channels 2017-07-24 09:22:22 +10:00
Daniel Oaks
15b891f31d client: Don't request echo-message by default 2017-07-23 22:55:55 +10:00
Daniel Oaks
28a5d8eed1 Rename lib 2017-06-15 10:21:10 -06:00
Dan
c8a7952933 Rename deps 2017-06-15 10:10:39 -06:00
Daniel Oaks
8d3dece3ac ircmatch: Point to new repo 2017-06-14 12:07:26 -06:00
Daniel Oaks
7e427ba929 istring: Add rfc7613 casemapping 2017-06-13 17:18:10 -06:00
Daniel Oaks
dcb717d58d ircmsg: Ignore trailing slashes while unescaping 2017-06-09 00:26:24 -06:00
Russ Garrett
744f1e3a7a
IRCv3 Capability Negotiation
This adds the ability to negotiate arbitrary IRCv3 capabilities on
connection. Capabilities to be requested can be set in `irc.RequestCaps`,
and after registration the negotiated capabilities can be seen in
`irc.AcknowledgedCaps`.
2017-01-25 17:36:15 +00:00
Russ Garrett
e1d00ae799
Add support for parsing IRCv3 tags in received messages 2017-01-25 15:39:59 +00:00
Daniel Oaks
44f3a36650 ircmsg: Support different lengths for tags and rest 2017-01-13 23:56:52 +10:00
Thomas Jager
1b0acb5f2f Fix double close of irc.end channel. 2016-12-08 09:29:58 +01:00
Daniel Oaks
cfa836b1b0 ircmsg: Fix case where colon is encoded into a param 2016-11-29 19:00:43 +10:00
Daniel Oaks
e25b1379c8 Add ircutils package 2016-11-28 16:27:27 +10:00
Daniel Oaks
18e618c0fe ircmsg: Use common behaviour of last empty param needing trailing 2016-11-28 12:30:29 +10:00
Thomas Jager
cfd5535e09 Merge pull request #91 from ugjka/master
make other threads exit if there's an error in one
2016-11-26 18:48:35 +01:00
ugjka
f4980d9fc2 make other threads exit if there's an error in one 2016-11-26 13:51:12 +02:00
Daniel Oaks
fc23d62e1d ircmsg: Enable max lengths for stuff 2016-11-26 19:25:37 +10:00
Daniel Oaks
ed9c4df235 ircmsg: And a bit more better 2016-11-26 19:24:55 +10:00
Daniel Oaks
63f6c66ea1 ircmsg: Improve robustness 2016-11-26 19:24:55 +10:00
Daniel Oaks
649590699f ircmsg: Add check for : for trailing 2016-11-26 14:16:03 +10:00
Thomas Jager
9fa6da3c5c Merge pull request #87 from tetheredge/fix-example
fix import statement in the example to the correct repo name
2016-11-08 13:59:05 +01:00
Taylor Etheredge
0d77e6970c fix import statement to correct repo name 2016-11-07 20:19:02 -06:00
Thomas Jager
01d32de186 Link to example in README 2016-11-05 19:17:13 +01:00
Thomas Jager
e7aa1b5e94 Add example 2016-11-05 19:10:18 +01:00
Thomas Jager
491578616f Merge pull request #82 from thoj/testing
Changed the way Quit/Disconnect works to avoid possible DATA races.
2016-11-05 18:55:39 +01:00
Thomas Jager
229753e4cc Do ping/Lag test 2016-11-05 18:53:53 +01:00
Thomas Jager
9e77c40650 Fix lag printing 2016-11-05 18:53:35 +01:00
Thomas Jager
fdbbdf33e3 Fix data races 2016-11-05 18:53:11 +01:00
Thomas Jager
3078a030ef Merge pull request #84 from davidscholberg/master
README: fixed test file path, converted it to github-flavored file link
2016-10-17 16:17:55 +02:00
David Scholberg
1a78dc3a39 README: fixed test file path, converted it to github-flavored file link 2016-10-07 22:49:57 -04:00
Daniel Oaks
ff89a69d1b ircmsg: Fail appropriately on empty message 2016-10-03 19:33:26 +10:00
Daniel Oaks
10cf202087 ircmatch: Don't print debug data 2016-09-17 21:33:57 +10:00
Daniel Oaks
941e08211f Add ircmatch - globbing based on NFA 2016-09-17 18:19:12 +10:00
Daniel Oaks
334b0ef660 client: Move to new eventmgr package 2016-09-04 20:42:20 +10:00
Daniel Oaks
8ec6cc767e eventmgr: Move to its own repo, considering how much it pulls from ircreactor 2016-09-04 20:35:22 +10:00
Daniel Oaks
65a99226a9 client: Fix capabilities 2016-09-04 20:35:04 +10:00
Thomas Jager
30fbca01f1 Merge pull request #83 from tetheredge/testing
Testing
2016-08-03 10:57:04 +02:00
Taylor Etheredge
7c392f5a61 add helper function to degub tests 2016-08-02 21:00:42 -05:00
Taylor Etheredge
62964f02b0 update comment on handling error events 2016-08-02 20:58:54 -05:00