Commit Graph

43 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 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 c56a9290d1 Don't reconnect furiously. 2015-11-29 21:21:56 +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 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 fb20706ed7 Use new interfaces from config in irc. 2015-11-18 14:04:56 +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
Robert Gerus 4aaecb8314 Move logging around a little 2015-10-20 03:42:07 +02:00
Robert Gerus 6389c6826c Receiver() is hosered and does a nil pointer dereference… 2015-10-20 03:09:50 +02:00
Robert Gerus d59ecbd636 Add verbosity. 2015-10-20 03:03:45 +02:00
Robert Gerus 7d1c112dcd Be a bit more verbose now. 2015-10-20 02:59:40 +02:00
Robert Gerus e1963a4ff7 Minor enhancements. 2015-10-20 02:53:36 +02:00
Robert Gerus 17627aade8 Start of our own little irc library, because others are NIH ;) 2015-10-20 01:55:09 +02:00