Commit Graph

878 Commits

Author SHA1 Message Date
Vysheng
31bd174917 Workaround for iphone bug 2014-11-10 18:14:44 +03:00
Vysheng
dbb6d196b5 Added more write_secret_chat_file calls 2014-11-10 14:32:49 +03:00
Vysheng
723756f3ae Updates to event-old.h 2014-11-10 14:16:46 +03:00
Vysheng
b522658be2 write secret chat file more frequent 2014-11-10 14:02:14 +03:00
vvaltman
824804be51 Merge github.com:vysheng/tg 2014-11-09 16:20:02 +03:00
vvaltman
807da5b3fb Merge github.com:vysheng/tg
Conflicts:
	tgl.h
2014-11-09 16:14:53 +03:00
vysheng
f25aa36076 Merge pull request #311 from mapio/master
Bumped readline version (for homebrew on OSX)
2014-11-03 23:53:52 +03:00
vysheng
40422736f0 Merge pull request #304 from bwesterb/patch-1
README: update instructions for MacPorts
2014-11-03 23:53:27 +03:00
vysheng
cc0a811699 Merge pull request #305 from bwesterb/patch-2
tgl.h: add stdlib.h include
2014-11-03 23:52:57 +03:00
vysheng
655a3b3cdc Merge pull request #301 from xypiie/master
Initialize address_len before accept()
2014-11-03 23:52:41 +03:00
Massimo Santini
35e8622d64 Bumper readline version (for homebrew on OSX) 2014-10-30 00:07:31 +01:00
Bas Westerbaan
318f8d5828 tgl.h: add stdlib.h include
This fixes the error

```
gcc -I. -I. -I/usr/local/include -I/opt/local/include -I/opt/local/include/lua-5.1  -I/usr/local/include -I/usr/include -I/usr/include  -I/opt/local/include  -DHAVE_CONFIG_H -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC -c -MP -MD -MF ./dep/lua-tg.d -MQ ./objs/lua-tg.o -o objs/lua-tg.o lua-tg.c
In file included from lua-tg.c:25:
In file included from ./lua-tg.h:24:
./tgl.h:380:27: error: implicitly declaring library function 'malloc' with type
      'void *(unsigned long)' [-Werror]
  struct tgl_state *TLS = malloc (sizeof (*TLS));
                          ^
./tgl.h:380:27: note: please include the header <stdlib.h> or explicitly provide
      a declaration for 'malloc'
1 error generated.
make: *** [objs/lua-tg.o] Error 1
```
2014-10-27 20:58:44 +01:00
Bas Westerbaan
b416aeece8 README: update instructions for MacPorts 2014-10-27 20:55:55 +01:00
Peter Feuerer
a8d6211be4 Initialize address_len before accept()
accept() could produce unexpected behavior in case the address_len is
uninitialized, e.g. return -1 with EINVAL
2014-10-26 02:24:05 +02:00
Vysheng
56fe7bed54 Refactored code a bit to better separation of library. Library can now be compiled without libevent. 2014-10-24 21:43:08 +04:00
Vysheng
c01eb11296 Merge branch 'master' of github.com:vysheng/tg 2014-10-23 21:51:42 +04:00
vvaltman
ff2cb23a50 Added function to provide custom net methods 2014-10-23 20:44:35 +04:00
vvaltman
282b1c6a81 Fixed problems with secret chat without binlog 2014-10-23 20:39:58 +04:00
Vysheng
f024b4bf2a Merge github.com:vysheng/tg 2014-10-21 20:48:21 +04:00
Vysheng
5308d0c6af Added --disable-extf to configure script 2014-10-21 20:47:57 +04:00
vysheng
edcfc99171 Merge pull request #295 from kmf/master
Added libevent-devel to Fedora section
2014-10-20 14:12:17 +04:00
Karl Fischer
fdb5a00c12 Added libevent-devel to Fedora section 2014-10-20 08:57:56 +02:00
vvaltman
25a4a72140 Merge branch 'master' of github.com:vysheng/tg 2014-10-18 19:37:29 +04:00
vvaltman
de08953038 Fixed encrypted messages 2014-10-18 19:36:44 +04:00
Vysheng
84795ec066 fixed bug in binlog init 2014-10-17 14:08:03 +04:00
vvaltman
3765e69dba Updated secret chats 2014-10-15 00:20:03 +04:00
vysheng
b1491d87c4 Merge pull request #288 from Jille/master
debian/control: Add build-dependency on libevent-dev
2014-10-13 13:50:40 +04:00
Vysheng
a3a4e63a49 Merge branch 'grishka-master' 2014-10-13 13:46:34 +04:00
Vysheng
8d9861af5a Fixed no_ids 2014-10-13 13:46:24 +04:00
Vysheng
ca194bef13 Merge branch 'master' of https://github.com/grishka/tg into grishka-master 2014-10-13 13:44:58 +04:00
vvaltman
a6c00cde52 Added support for layer 18 2014-10-12 19:53:57 +04:00
Jille Timmermans
77f5822946 debian/control: Add build-dependency on libevent-dev 2014-10-12 13:36:45 +02:00
Grishka
4882b0adb5 Add an option to use IDs instead of names
Useful for bots
2014-10-12 04:27:34 +04:00
vysheng
d564c65350 Merge pull request #285 from mk-pmb/cfgdir-env
pick home and config path from environment if set.
2014-10-11 18:51:04 +04:00
vysheng
30f7d8e202 Merge pull request #286 from stillru/master
Upstart daemon in debian pakage
2014-10-11 18:49:13 +04:00
Steve Illichevskiy
fc16f25ed7 Upstart tested 2014-10-11 16:30:27 +04:00
Steve Illichevskiy
27d904cce0 Update debianisation 2014-10-11 16:12:20 +04:00
mk-pmb
e914359a18 print config dir debug info only if output is enabled 2014-10-10 13:49:30 +02:00
mk-pmb
09bb322d7e When creating a new config, determine config dir by default strategy. 2014-10-10 13:30:17 +02:00
mk-pmb
fab13d7722 add support for XDG_CONFIG_HOME as per FreeDesktop basedir spec 2014-10-10 11:34:47 +02:00
mk-pmb
9804997b19 pick home and config path from environment if set. 2014-10-10 10:59:39 +02:00
vvaltman
6132516d5a added set_profile_name query 2014-10-09 21:38:45 +04:00
vvaltman
4604d4f374 Merge branch 'master' of github.com:vysheng/tg 2014-10-09 21:23:31 +04:00
vvaltman
c182b6d210 interface: fixed param type of rename_chat 2014-10-09 21:22:40 +04:00
Vysheng
54f6743db7 Merge github.com:vysheng/tg 2014-10-07 14:02:36 +04:00
Vysheng
a8a5de7489 Fixed geo 2014-10-07 14:02:19 +04:00
vysheng
d7f573ca81 Merge pull request #273 from burunduk3/master
exit on ctrl+D
2014-10-06 21:07:25 +04:00
Vysheng
62d3c07f34 Updated layer 17 2014-10-06 14:06:48 +04:00
Oleg Davydov
2867d3733b Merge branch 'master' of https://github.com/vysheng/tg 2014-10-06 02:08:35 +04:00
Oleg Davydov
465657d67b safe_quit on ^D 2014-10-06 02:08:28 +04:00