Commit Graph

158 Commits (30513fc0d57db518631cd5c2e81f8b6a4edeb4b6)

Author SHA1 Message Date
Robert Gerus 0a346f6727 Update example configuration 2015-11-10 22:16:31 +01:00
Robert Gerus 99759ea732 Remove file path builder function from main() 2015-11-10 22:12:36 +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 09d2720b7f Implement cache purging
Fixes #8
2015-11-10 18:37:58 +01:00
Robert Gerus 984e336401 Forgot about cache initalization 2015-11-10 16:30:00 +01:00
Robert Gerus 4a0976c89a Partial implementation of configuration cache
Cache removal for removed files not yet implemented.
2015-11-10 10:48:38 +01:00
Robert Gerus ebf31d91bb Fix remainging "hiera" issues
Fixes #2 and #5
2015-11-10 02:06:09 +01:00
Robert Gerus 23b632ae86 Remove deprecated fields from Config 2015-11-10 00:20:16 +01:00
Robert Gerus 1b328d0b0d Formatting 2015-11-10 00:14:05 +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 2c0955a168 Make Callbacks a map of maps; Fixes #3 2015-11-09 08:00:13 +01:00
Robert Gerus d5623a1ca2 Join configured channels. 2015-11-09 02:06:43 +01:00
Robert Gerus 07cd403f89 PC might be important to some people… 2015-11-09 01:49:40 +01:00
Robert Gerus e816e72743 Add a separate dispatcher for PRIVMSG
We're going to use that one a lot more than the others…
2015-11-09 01:46:08 +01:00
Robert Gerus fb8e2d8392 Print a nicer error messages on startup 2015-11-09 01:05:06 +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 809da12c12 Update example configuration 2015-11-07 13:02:08 +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 44ff681aaf Revert "Simplify stuff"
Go back to the old way of doing things that actually made sense to me
2015-11-07 02:26:36 +01:00
Robert Gerus 3b23401dec Simplify stuff 2015-11-06 23:25:17 +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 f33b6c47e3 Expose irc "realname" to configuration 2015-10-20 10:45:16 +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 9899f9b836 Actually try to spawn network connections now. 2015-10-20 02:59:05 +02:00
Robert Gerus e1963a4ff7 Minor enhancements. 2015-10-20 02:53:36 +02:00
Robert Gerus 834a4c527a Speaking of our own little irc connection lib… 2015-10-20 01:56:34 +02:00
Robert Gerus 17627aade8 Start of our own little irc library, because others are NIH ;) 2015-10-20 01:55:09 +02:00
Robert Gerus 98e56152a5 go fmt + some other stuff i do not really remember now. 2015-10-20 01:54:07 +02:00
Robert Gerus 5e6591591f I think these things should work, but yeah… not yet tested. 2015-10-19 10:37:08 +02:00
Robert Gerus 2ef3944efd Some more configuration changes… 2015-10-15 21:23:42 +02:00