Commit Graph

56 Commits

Author SHA1 Message Date
3a922c3c1a degesch: start using "on_change" notifications
Terminal attributes can be changed on the fly now.
2015-07-05 15:57:53 +02:00
34c1df5171 mv config_schema_{fix_value,initialize_item}() 2015-07-05 02:16:43 +02:00
b1dd34a7ba degesch: set "user_data" while loading config
It'd be quite wrong to call "on_change" on them without this.
2015-07-05 02:16:43 +02:00
9b41256ebf degesch: create servers from configuration
This means that as of now, the only way of creating a server is
to edit the configuration file by hand and add (at least) an empty
object under the server's name.
2015-07-05 02:16:43 +02:00
2e20ec0ef6 degesch: get real with the CTCP 2015-07-04 01:11:27 +02:00
b486965277 kike: resolve the path to PID files better 2015-07-02 01:05:56 +02:00
51bf132c6b Bump liberty 2015-07-01 23:28:30 +02:00
b56245cf5b degesch: implement /buffer move 2015-06-21 19:35:35 +02:00
8eb31ad2e1 degesch: fix /invite 2015-06-18 22:35:14 +02:00
897bb00af1 degesch: add & use strncasecmp_ascii() 2015-06-02 21:28:41 +02:00
5a0af0364f common: fix connector failure 2015-05-12 05:04:17 +02:00
2eda3110b3 degesch: asynchronous connecting etc.
I'm sorry, couldn't keep the diff small.

All the ZyklonB heritage code is shit anyway.
2015-05-09 22:14:02 +02:00
1b2fabe4cc Move code within common.c 2015-05-08 23:29:09 +02:00
879ece1516 config: update comments 2015-05-08 23:26:42 +02:00
62c55858d0 config: shut up GCC 2015-05-07 19:00:08 +02:00
c9a02141f9 degesch: move some code to common.c 2015-05-04 02:17:55 +02:00
bdad4dce42 config: fix config_item_set_from() 2015-05-03 19:26:39 +02:00
134a627130 degesch: finish /set
One bug remaining to make it work.
2015-05-03 19:26:39 +02:00
4eca3fb4db config: a tiny bit better messages 2015-05-03 17:00:58 +02:00
3b8e8cc97f config: fix string parsing 2015-05-02 22:49:51 +02:00
1b891ab01b Bump liberty 2015-05-02 22:36:26 +02:00
cb2cbc9100 config: fixes 2015-05-02 22:35:14 +02:00
cfc77159d8 config: on_changed -> on_change 2015-05-02 21:19:12 +02:00
f7c08fdace config: simplify and mostly finish
What still sucks:
 - "on_change" callbacks have little information;
   maybe we could add a user-defined field to the schema;
   also config_schema_apply_to_object() might assign "user_data"
 - no idea how to generate the default configuration file
2015-05-02 21:10:39 +02:00
5a6b12245b config: implement config_schema_apply_to_object() 2015-05-02 20:43:01 +02:00
7cffbc1b2e config: implement config_load() 2015-05-02 15:07:14 +02:00
409a13ac7f config: assert that strings are valid UTF-8 2015-05-02 15:06:31 +02:00
c4ea0e28fd config: implement string tokenizing 2015-05-02 04:59:55 +02:00
83e159d945 config: finish config_item_write() implementation 2015-05-02 04:02:23 +02:00
fddcef24f9 config: implement a few more methods 2015-05-02 03:45:23 +02:00
e5b38e9312 config: get rid of "is_nullable"
If it doesn't have a default, it just is.
2015-05-02 03:44:31 +02:00
852c2ac158 Move some macros to common.c 2015-05-02 03:43:29 +02:00
57f052a2be Get rid of "All rights reserved" 2015-05-01 23:41:22 +02:00
ebc3f7fd7d Implement config_item_get() 2015-05-01 23:26:30 +02:00
b4dab3489d Implement config_item_set_from() 2015-05-01 21:48:43 +02:00
d4deb31a17 Allow extra newlines before right brace in config 2015-05-01 20:59:09 +02:00
f5f3dd1a29 Halfplement configuration writing 2015-05-01 20:58:46 +02:00
9285974bff Fix error reporting in configuration parsing 2015-05-01 18:39:38 +02:00
6bf57d3450 Start writing a new configuration system
For degesch but in the long term for the rest as well.
2015-05-01 17:33:10 +02:00
245ff38498 Prepare for a custom logger in degesch 2015-04-11 21:12:56 +02:00
4d4bdc1e6a Move the SOCKS code to common.c 2015-04-11 21:09:06 +02:00
012930675e Bump liberty 2015-03-29 03:46:13 +02:00
9681ad0021 Move to liberty 2015-02-28 20:09:51 +01:00
ccf6b1427f Add a useful assertion to the poller 2015-02-21 12:32:51 +01:00
6a9a707a9c Avoid null pointer dereference
In irc_listen_resolve() with NULL `host'.
2015-02-14 07:22:28 +01:00
e8fe0dad81 Import optimized event loop from ponymap 2015-02-12 02:04:39 +01:00
cd1a55a0d1 Import option handler from ponymap 2015-02-11 02:07:52 +01:00
89e9f13e12 Fixes 2014-09-27 00:55:13 +02:00
a1c9018847 Fix timers 2014-09-20 02:08:30 +02:00
d4c60dc105 s/_func/_fn/ 2014-09-19 01:08:18 +02:00