Commit Graph

56 Commits (master)

Author SHA1 Message Date
Robert Gerus 4998f0b548 Last change was overcomplicated. 2015-12-23 20:57:31 +01:00
Robert Gerus a7eefc7daf Give explicit notice on message truncation.
Fixes #1
2015-12-23 20:26:57 +01:00
Robert Gerus 280027750f Brainfart. 2015-12-14 15:12:18 +01:00
Robert Gerus acad1ec1cb Use external dyncfg. 2015-12-14 14:58:42 +01:00
Robert Gerus bc36369497 Adjust irc package to changes in config. 2015-12-12 12:35:49 +01:00
Robert Gerus 8fe326d3e4 Fix a possible panic. 2015-12-09 10:23:54 +01:00
Robert Gerus a33117ebd6 Fix remaining data races in test suite. 2015-12-09 02:05:03 +01:00
Robert Gerus 7fb66c985c Reduce the number of data races to 11. 2015-12-09 01:58:11 +01:00
Robert Gerus 6c99ab743b We only use go1.5 anyway now. 2015-12-07 01:09:59 +01:00
Robert Gerus c56a9290d1 Don't reconnect furiously. 2015-11-29 21:21:56 +01:00
Robert Gerus ba55cda22b Fix tests for irc package on legacy go. 2015-11-29 16:31:01 +01:00
Robert Gerus 91dd783b6b Fix tests for irc package. 2015-11-29 16:29:30 +01:00
Robert Gerus 30513fc0d5 Make irc.Sender a function instead of coroutine.
Also, remove two channels that were used with this coroutine.
This patch does not contain the necessary changes in bot package.
2015-11-29 14:34:09 +01:00
Robert Gerus 9bec013fe7 Don't use bytes.Buffer when not needed. 2015-11-20 10:27:09 +01:00
Robert Gerus c8de32ddbf Build tag is more important that copyright. 2015-11-19 02:23:03 +01:00
Robert Gerus bf0b022586 Disable half of irc package tests for now. 2015-11-19 01:49:14 +01:00
Robert Gerus d38714728f Try making tests go1.2 compatible again. 2015-11-19 01:44:10 +01:00
Robert Gerus bfd5674e2a Crude set of tests for irc connection. 2015-11-19 01:40:15 +01:00
Robert Gerus e6825f5a9a irc.Keeper() and irc.Cleaner() can now quit.
It should now be possible to write test for irc.
2015-11-18 22:16:02 +01:00
Robert Gerus b2cdd42980 Import message tests from github.com/sorcix/irc 2015-11-18 20:26:28 +01:00
Robert Gerus fb20706ed7 Use new interfaces from config in irc. 2015-11-18 14:04:56 +01:00
Robert Gerus f252737dff Fix error strings.
"golint -min_confidence 0.4 ./..." complained.
2015-11-17 18:51:47 +01:00
Robert Gerus c160a8a362 Dispatcher does not need to be a goroutine.
This simplifies irc.Connection structure (removes quitdispatcher and output
channels), simplifies logic (no need to clean up those two channels and the
dispatcher goroutine) and will make testing bot dispatcher and plugins easier.
2015-11-17 14:34:30 +01:00
Robert Gerus 0598ee7a91 Fix godoc a bit. 2015-11-16 20:25:18 +01:00
Robert Gerus 3f389ea843 Document irc package
Fixes #11 and silences golint
2015-11-12 14:07:57 +01:00
Robert Gerus 0703291209 Add copyright headers. 2015-11-12 10:07:53 +01:00
Robert Gerus 6c77cdf7f7 Code cleanup - do away with exports 2015-11-11 21:38:33 +01:00
Robert Gerus 1d792397cd Removed lots of old code and fixed #6 2015-11-10 21:57:31 +01:00
Robert Gerus 1c1f280262 Fix #7 - config package is now reusable
Replaced Config type with map[string]string in the process.
2015-11-10 21:00:40 +01:00
Robert Gerus ebf31d91bb Fix remainging "hiera" issues
Fixes #2 and #5
2015-11-10 02:06:09 +01:00
Robert Gerus ef80bcd387 It /mostly/ works now. 2015-11-10 00:13:30 +01:00
Robert Gerus 1ad852888a It's hierryfying and does not build… yet 2015-11-09 14:32:26 +01:00
Robert Gerus 4869d767be Implement read timeouts - we should get a ping or other message at least once every ten minutes on every reasonable irc network. 2015-11-09 00:50:25 +01:00
Robert Gerus 62fa0b60c2 Handle errors on connection. 2015-11-09 00:43:34 +01:00
Robert Gerus 6815bb3000 Cleanup the dispatcher. 2015-11-08 22:50:41 +01:00
Robert Gerus aa6a914aec Make sure we close the dispatcher. 2015-11-08 22:13:15 +01:00
Robert Gerus 7a8c07445e Fix the synchronisation issues… 2015-11-08 22:00:33 +01:00
Robert Gerus fa40fe1ef4 Most of these fields don't need to be public anyway 2015-11-08 21:24:49 +01:00
Robert Gerus da408c9b8a Remove old dispatcher 2015-11-08 21:13:51 +01:00
Robert Gerus 6ad165c880 It responds to pings now 2015-11-08 20:55:47 +01:00
Robert Gerus 2dfa1a8b7f Close channels if they're open, possibly fix the memleak. 2015-11-08 16:44:16 +01:00
Robert Gerus 665f4c8071 Unify log messages 2015-11-07 13:13:47 +01:00
Robert Gerus 70887ff97f Make the log messages a bit more reasonable 2015-11-07 13:02:42 +01:00
Robert Gerus 762b005b9b Things start work, finally. 2015-11-07 12:51:45 +01:00
Robert Gerus a022f23d8c Fixup 2015-11-07 03:28:34 +01:00
Robert Gerus 67dae458a5 Placeholder message dispatcher. 2015-10-20 11:06:58 +02:00
Robert Gerus 1da17d95d5 Fix formatting and input/output channels 2015-10-20 11:02:29 +02:00
Robert Gerus e4f95d5909 Expose username and realname to configuration and make use of it in irc.Dial() 2015-10-20 10:59:13 +02:00
Robert Gerus 0e3c51ae78 Fix the bloody writer… 2015-10-20 10:45:50 +02:00
Robert Gerus 632ee1e6ab Apparently some things do not really like to be pointers 2015-10-20 04:28:15 +02:00