add lwqq_hash_auto, this function can autoselect existing hash

Signed-off-by: xiehuc <xiehuc@gmail.com>
add hash set_beg and get_last for speedup

新的hash系统有助于快速反应, 大部分情况下无需编译mozjs, 也能够在已知的
hash函数中进行选择. 当然, 如果是tx使用了新的hash, 则还是需要mozjs

Signed-off-by: xiehuc <xiehuc@gmail.com>
fix hash auto bugs

add_event_chain在req的回调中总是可用的, 并且会拆除掉上次设置的chain

Signed-off-by: xiehuc <xiehuc@gmail.com>
fix compile error for cli.c

Signed-off-by: xiehuc <xiehuc@gmail.com>
fix bug write too many discu entry into database

如果读取discu的时候发现有很多条目, 会导致userdb mismatch. 然后又新创建一
个discu,再写入数据库, 导致恶性循环. 修改为发现多个条目也返回第一条.

Signed-off-by: xiehuc <xiehuc@gmail.com>
update database version, force all users refresh database

由于之前的bug导致数据库中有重复条目, 需要强制所有用户刷新!
将discu的name改为unique, 避免写入重复条目

Signed-off-by: xiehuc <xiehuc@gmail.com>
mv process_simple_response to lwqq__process_simple_response

Signed-off-by: xiehuc <xiehuc@gmail.com>

Signed-off-by: xiehuc <xiehuc@gmail.com>
logout change to another timeout,

performs well with bad network condition.

Signed-off-by: xiehuc <xiehuc@gmail.com>

Signed-off-by: xiehuc <xiehuc@gmail.com>
clean http.c indent

Signed-off-by: xiehuc <xiehuc@gmail.com>

Signed-off-by: xiehuc <xiehuc@gmail.com>
fix msg_upload_offline_pic write mistaken

虽然用不了, 服务器关闭了.

Signed-off-by: xiehuc <xiehuc@gmail.com>

Signed-off-by: xiehuc <xiehuc@gmail.com>
update python bindings

Signed-off-by: xiehuc <xiehuc@gmail.com>
release 0.3.1

Signed-off-by: xiehuc <xiehuc@gmail.com>
group list also need hash

Signed-off-by: xiehuc <xiehuc@gmail.com>