Commit graph

577 commits

Author SHA1 Message Date
boreq
6d6a4e3311 Improve AddCallback documentation 2018-08-10 02:04:31 +02:00
Iceflower
e975eae5ba
Add method to get message without formatting 2018-06-26 08:49:07 +02:00
James McGuire
fc944ef429 Run all callbacks in parallel 2018-05-18 15:19:14 -07:00
James McGuire
edafec0fc7 Add support for callback timeouts via context 2018-05-11 19:17:24 -07:00
Daniel Oaks
8d136c4f92
Merge pull request #8 from slingamn/bytesbuffer.1
build IRCMessage using bytes.Buffer
2018-04-30 17:50:55 +10:00
Shivaram Lingamneni
3a1b8b0f0c use bytes.Buffer to build ircmsg.IRCMessage for sending 2018-04-26 23:34:04 -04:00
Shivaram Lingamneni
c098b46276 add some test code 2018-04-26 23:32:27 -04:00
Thomas Jager
5063e5f260
Merge pull request #96 from qaisjp/feature/webirc
Add WebIRC field
2018-04-09 15:01:47 +02:00
Daniel Oaks
1cb16094f0 ircmsg: Make ircmsg respect emoji in tags 2018-02-11 01:12:16 +10:00
Daniel Oaks
55652e4096 ircfmt: Add Reverse Colour (0x16) 2017-12-29 11:19:27 +10:00
Daniel Oaks
e028586483 ircfmt: Fix unescape function and tests 2017-12-26 10:27:00 +10:00
Daniel Oaks
ed988e36d1 ircfmt: Support monospace and strikethrough, make the escaping function much less fragile 2017-12-25 22:16:25 +10:00
Qais Patankar
81cb5e9132
Merge branch 'master' into feature/webirc 2017-12-24 19:08:48 +00:00
Qais Patankar
d5dbd683d9
Merge branch 'master' into feature/webirc 2017-12-24 19:08:02 +00:00
Thomas Jager
db5bd176f7
Merge pull request #99 from prologic/master
Add realname support. Guard against race conditions on Disconnect
2017-11-13 09:21:06 +01:00
James Mills
547dde5ba3
Do not Disconnect() on ERROR events (e.g: KILL). 2017-11-12 18:53:49 -08:00
James Mills
656226dc22
Add realname support. Guard against race conditions on Disconnect 2017-11-12 18:53:49 -08:00
Thomas Jager
ef65ae61a3 Merge pull request #94 from irccloud/ircv3-tags
IRCv3 capability negotiation and tag parsing
2017-10-13 19:30:29 +02:00
Daniel Oaks
3a2b80af9b ircfmt: Allow unicode characters 2017-10-09 07:29:36 +10:00
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