Commit Graph
100 Commits
Author SHA1 Message Date
Thomas Jager 582bf80992 Changed the way Quit/Disconnect works to avoid possible DATA races.
Rewrote tests to be less spammy. Created REconnection test.
2016-07-27 22:55:55 +02:00
Thomas Jager a6b1561a01 Redo and Clean up some tests 2016-07-25 13:27:37 +02:00
Thomas Jager 6c780b5b70 Merge branch 'master' of github.com:thoj/go-ircevent 2016-07-25 01:30:25 +02:00
Thomas Jager 39b48423fd Wrong format type in printf (%s -> %d) 2016-07-25 01:29:47 +02:00
Thomas Jager 4d2d36fc65 Remove unreacable code 2016-07-25 01:29:06 +02:00
Thomas Jager a08c332184 Merge pull request #77 from 42wim/sasl
Add SASL (PLAIN) support
2016-07-23 01:52:49 +02:00
Thomas Jager 98c1902dd2 Merge pull request #74 from d1str0/master
Correct typo in README example and ellaborate on a comment.
2016-07-20 14:27:14 +02:00
Thomas Jager da78ed515c BREAKING CHANGES: Run callbacks in main thread and int callback id.
Execute callbacks in main thread. This will break callbacks that
use a long time to execute. Create your own thread in AddCallback
using gorutines on long running callbacks.

Use deterministic IDs for AddCallback. Changes the id from SHA-hash
to int.
2016-02-06 21:38:53 +01:00
Thomas Jager ab737c68eb Remove unnecessary return 2016-02-06 21:20:35 +01:00
Thomas Jager a767654908 Merge pull request #69 from peted27/master
fix reconnection logic
2015-12-05 11:32:46 +01:00
Thomas Jager db3338ebd4 Merge pull request #68 from lukevers/quit-message
Add support for specifying a quit message.
2015-10-28 14:31:23 +01:00
Thomas Jager 988aaaacd9 Merge pull request #66 from dainis/master
Fix - #65,
2015-08-28 20:28:27 +02:00
Thomas Jager 172717c0c5 Remove fuzzing testcases 2015-07-31 21:34:27 +02:00
Thomas Jager 3f51dd25c7 Move fuzzing code to seperate file 2015-07-31 21:33:36 +02:00
Thomas Jager f204a14e00 Only trim newline/linefeed 2015-07-31 13:03:48 +02:00
Thomas Jager e2be9c53c1 Test empty Action 2015-07-31 13:03:31 +02:00
Thomas Jager 6ce1e34c21 Don't crash on empty ACTION 2015-07-31 13:03:09 +02:00
Thomas Jager c47f9d8e3d Fuzz testing callbacks 2015-07-31 08:30:21 +02:00
Thomas Jager 8b3e6a50ac Fix ident 2015-07-31 08:29:20 +02:00
Thomas Jager 414fe0a201 Fix testcase. Id can come in diffrent orders. 2015-07-31 08:28:54 +02:00
Thomas Jager 6c849e1147 Merge branch 'master' of github.com:thoj/go-ircevent into fuzz 2015-07-31 07:35:48 +02:00
Thomas Jager 4b30e65f83 Fix indentation 2015-07-31 07:35:34 +02:00
Thomas Jager 4f50f209c4 Fix parser. Tested with go-fuzz 2015-07-31 07:34:19 +02:00
Thomas Jager 35f8ae857e Merge pull request #62 from alaska/master
Add kick/multi kick. Properly randomize. Catch invalid CTCP messages and log
2015-07-31 07:05:02 +02:00
Thomas Jager 747806b8dd Move connection tests last 2015-07-30 14:41:53 +02:00
Thomas Jager 2c74703554 Merge pull request #60 from dainis/master
Fix - wait for waitgroup to sync before reconnecting
2015-07-30 12:46:56 +02:00
Thomas Jager f169aaad6f Merge pull request #58 from julidau/master
fixing small bugs
2015-06-25 10:38:50 +02:00
Thomas Jager 087ae892d0 CTCP Messages must be more then 2 characters long.
Avoid panic on malformed CTCP messages.
2015-03-31 15:14:13 +02:00
Thomas Jager 47e552f62d Merge pull request #56 from 9uuso/master
Fix commands to correspond parameter name
2015-03-22 08:39:03 +01:00
Thomas Jager 5e6704d895 Merge pull request #49 from Caerostris/master
minor adjustments for multiple connections
2014-11-03 17:37:15 +01:00
Thomas Jager 9c4d007b9f Merge pull request #48 from veonik/master
Added Connected method
2014-11-02 20:53:40 +01:00
Thomas Jager 18b9dfbf29 Merge pull request #47 from GawainLynch/master
Add a formatted ACTION
2014-10-07 22:40:37 +02:00
Thomas Jager 03e596dff4 Merge pull request #45 from antzucaro/master
Add verbose logging for ReadLoop().
2014-10-05 23:54:51 +02:00
Thomas Jager baefdc5d0b Merge pull request #44 from julianec/master
Set irc.currentnick to irc.nick if irc.currentnick is empty.
2014-08-27 21:38:15 +02:00
Thomas Jager 90dc7f966b Merge pull request #41 from whd/master
Use tls.DialWithDialer instead of tls.Client and remove irc.netsock
2014-08-14 15:11:46 +02:00
Thomas Jager 40cfe292a9 Merge pull request #40 from oniichaNj/master
no longer breaks on invalid (too short) ctcp requests
2014-08-06 09:09:35 +02:00
Thomas Jager 33fb824b4f Merge pull request #38 from ecnahc515/custom_handling_disconnect
Custom handling disconnect
2014-07-29 10:03:48 +02:00
Thomas Jager 47f9578f45 Merge pull request #39 from adnils/master
Fix command letter casing.
2014-07-29 10:03:31 +02:00
Thomas Jager a4ab35198c Merge pull request #33 from lucron/master
Fix for reconnect and connection errors
2014-06-24 10:08:50 +02:00
Thomas Jager b73cc42bde Remove Disconnect() from Quit(). Use ERROR feedback from server instead. 2014-06-18 15:59:07 +02:00
Thomas Jager 14db1acfd0 Add default callback for ERROR 2014-06-18 15:58:18 +02:00
Thomas Jager 9909b5a3d3 Modified test 1 2014-06-18 15:56:42 +02:00
Thomas Jager da2e16496d Merge pull request #31 from scrapbird/master
Fixed a bug in irc_callback.go on line 163 where a Message is treated as...
2014-05-12 07:26:43 +02:00
Thomas Jager 2e87f54e96 Merge pull request #29 from alsm/master
Close channel to signal goroutines to quit and waitgroup to confirm that...
2014-05-03 00:32:17 +02:00
Thomas Jager 50d8ba24ee Merge pull request #28 from hobbeswalsh/master
Adding support for CTCP ACTION
2014-04-25 08:19:03 +02:00
Thomas Jager accfd72b17 Merge pull request #27 from tpltnt/master
sanity checks IRC() and Connect()
2014-02-16 14:23:08 +01:00
Thomas Jager ceacb7cda1 Merge pull request #26 from tpltnt/more-docs
More docs
2014-02-14 18:15:14 +01:00
Thomas Jager 32f96cb2c8 Merge pull request #25 from darkliquid/extra-commands
Added Whois, Who and Mode (also go fmt)
2014-02-13 23:24:14 +01:00
Thomas Jager 95288a16c5 Fix Formats and Send error to main goroutine on Disconnect 2014-02-12 08:42:10 +01:00
Thomas Jager 9bdf790e25 Fix formats 2014-02-12 08:41:22 +01:00
Thomas Jager 84a0cb60ed Fix test cases. Added sleep before Quit 2014-02-12 08:40:30 +01:00
Thomas Jager bbbdd715fa Merge pull request #24 from darkliquid/callback-tweaks
Looks good to me. The id generating code may need some tweaking but should work fine as is :)
2014-02-12 08:17:43 +01:00
Thomas Jager defd1e2189 Update Readme 2014-02-12 00:05:20 +01:00
Thomas Jager 33a06eb72b Merge pull request #22 from darkliquid/public-log
Make IRC logger public. No reason for disallowing overrides.
2014-02-10 21:39:55 +01:00
Thomas Jager 54329413c3 Merge pull request #21 from darkliquid/safe-disconnect
Deal with shutdowns more safely
2014-02-10 21:18:03 +01:00
Thomas Jager 09ea5672e2 Merge pull request #20 from darkliquid/master
Added configurable timeouts and overridable version string
2014-02-10 20:26:44 +01:00
Thomas Jager a1d207d5fa Merge pull request #19 from worr/ctcp_action
Added support for CTCP ACTION (/me)
2014-02-02 03:21:25 -08:00
Thomas Jager 5d143c7b85 Merge pull request #16 from presbrey/master
Loop: catch reconnection errors; writeLoop: only log.Print if Debug
2014-02-02 03:20:45 -08:00
Thomas Jager 14b5cb8b16 Merge pull request #15 from Philipp15b/improvements
Some improvements
2013-04-04 07:47:20 -07:00
Thomas Jager 0e84fb331a Remove garbage 2013-03-13 12:56:47 +01:00
Thomas Jager 0bc57f9d68 Formatting 2013-03-13 12:54:00 +01:00
Thomas Jager 4543fadeba Add Nick change function 2013-03-13 12:53:47 +01:00
Thomas Jager 3228e64f1b Add Nick change function 2013-03-13 12:53:08 +01:00
Thomas Jager 0304912f18 Fix crash on nick change 2013-03-13 12:52:31 +01:00
Thomas Jager def8cd55a7 Add testcase for crash on nick change 2013-03-13 12:50:29 +01:00
Thomas Jager 83136b6c73 Fix pinger 2012-11-11 10:51:14 +01:00
Thomas Jager 588a268192 Fix test 2012-11-11 10:51:02 +01:00
Thomas Jager c67bd5be47 Update readme 2012-11-11 10:41:33 +01:00
Thomas Jager 0ed7585b71 Add more helpers 2012-11-11 10:37:52 +01:00
Thomas Jager 5f2c062fb5 Update readme with TLS 2012-11-07 21:57:10 +01:00
Thomas Jager 9e880ef476 SSL -> TLS 2012-11-07 21:55:33 +01:00
Thomas Jager c8f78ebf45 Change the way the pinger works.
Fix syning threads before reconnections
Formatting
2012-11-07 21:51:24 +01:00
Thomas Jager d53de8bdbd Flatten structure for use with go get 2012-11-06 00:40:55 +01:00
Thomas Jager 7e83b51915 Fix tests. Add SSL test. 2012-11-06 00:40:00 +01:00
Thomas Jager e05c098519 Merge changes from other fork 2012-11-06 00:39:31 +01:00
Thomas Jager be3afcc796 Merge branch 'master' of git://github.com/lye/cleanirc
Conflicts:
	irc.go
	irc_callback.go
	irc_struct.go

Merge Interesting changes from fork
2012-11-06 00:38:20 +01:00
Thomas Jager a5f3a91fd1 go get not working quite as i thought 2012-11-05 23:46:47 +01:00
Thomas Jager ddf0508cdb Cleanup old files 2012-11-05 23:41:04 +01:00
Thomas Jager 4e254c18e1 Merge back fork. Update readme. 2012-11-05 23:39:38 +01:00
Thomas Jager 6c49e9f992 Merge pull request #12 from reynir/short-names
Short names
2012-11-05 14:10:57 -08:00
Thomas Jager 67c1c92623 Merge pull request #10 from mjard/master
Fixes against weekly.2012-02-22
2012-02-25 01:51:33 -08:00
tj 4e661a3954 Gofix 2011-11-07 01:26:12 +01:00
Thomas Jager a303faccdb Merge pull request #9 from icanhas/r60-fix
Fix build errors with new versions of go
2011-11-06 16:08:28 -08:00
Thomas Jager 726363f01f Merge pull request #8 from mjard/master
minor updates
2011-05-22 12:30:21 -07:00
tj 9d322aca1a Compabillity fixes for new go core version 2011-04-05 10:37:17 +02:00
tj ea8495857e Better nick recapture 2011-02-03 01:16:13 +01:00
tj cf4e9f829a Crashfix on empty privmsg 2010-11-21 21:20:18 +01:00
tj deae8abc23 Use append built-in instead of custom function 2010-11-19 19:36:28 +01:00
tj 105d6d61d3 Add part, patch by soul9 2010-10-19 14:12:17 +02:00
tj 79ac1741ea Add irccon.Quit() and irccon.Cycle()
Quit() Sends QUIT to server and exits the main loop.
Cycle() Sends QUIT to server and reconnects.
2010-10-18 21:46:34 +02:00
tj 8b8321be96 Check for closed channel in writer to avoid throw/crash 2010-10-18 21:34:07 +02:00
tj 6f170547d3 Fix the pinger/ticker code a bit. Thanks soul9 ;) 2010-10-16 20:43:59 +02:00
tj 0b332411b6 Replace broken Makefile 2010-10-15 12:44:14 +02:00
tj 334fc8ff3e Merge branch 'master' of git://github.com/thoj/Go-IRC-Client-Library 2010-10-11 21:18:02 +02:00
tj f69d3c8182 merge 2010-10-11 21:17:59 +02:00
tj 1fe11ca937 Kill channels for fater retry 2010-10-11 21:17:17 +02:00
tj fd854c475a Fix adding more then one callback for same eventcode, grow slice dynamically. 2010-10-09 15:11:28 +02:00
tj abc18957ff More than one callback in example 2010-10-09 15:10:37 +02:00
tj e554b8b4a0 More than one callback in example 2010-10-09 15:09:59 +02:00
tj ca78ca8c10 Fixing compile for new go version, again. (Sorry about that) 2010-09-29 11:53:44 +02:00