Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
f11664c2
Commit
f11664c2
authored
Oct 25, 2013
by
vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some fixes required by GPL
parent
2961f108
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
357 additions
and
1 deletion
+357
-1
LICENSE.h
LICENSE.h
+339
-0
interface.c
interface.c
+9
-0
main.c
main.c
+7
-0
net.h
net.h
+2
-0
queries.c
queries.c
+0
-1
No files found.
LICENSE.h
0 → 100644
View file @
f11664c2
This diff is collapsed.
Click to expand it.
interface.c
View file @
f11664c2
...
@@ -64,6 +64,7 @@ char *commands[] = {
...
@@ -64,6 +64,7 @@ char *commands[] = {
"send_video"
,
"send_video"
,
"send_text"
,
"send_text"
,
"chat_info"
,
"chat_info"
,
"show_license"
,
0
};
0
};
int
commands_flags
[]
=
{
int
commands_flags
[]
=
{
...
@@ -77,6 +78,7 @@ int commands_flags[] = {
...
@@ -77,6 +78,7 @@ int commands_flags[] = {
0732
,
0732
,
0732
,
0732
,
074
,
074
,
07
,
};
};
char
*
a
=
0
;
char
*
a
=
0
;
...
@@ -365,6 +367,13 @@ void interpreter (char *line UU) {
...
@@ -365,6 +367,13 @@ void interpreter (char *line UU) {
pop_color
();
pop_color
();
print_end
();
print_end
();
printf
(
"
\033
[1K
\033
H"
);
printf
(
"
\033
[1K
\033
H"
);
}
else
if
(
!
memcmp
(
line
,
"show_license"
,
12
))
{
char
*
b
=
#include "LICENSE.h"
;
print_start
();
printf
(
"%s"
,
b
);
print_end
();
}
}
}
}
...
...
main.c
View file @
f11664c2
...
@@ -244,6 +244,13 @@ int main (int argc, char **argv) {
...
@@ -244,6 +244,13 @@ int main (int argc, char **argv) {
signal
(
SIGABRT
,
sig_handler
);
signal
(
SIGABRT
,
sig_handler
);
running_for_first_time
();
running_for_first_time
();
printf
(
"Telegram-client version "
TG_VERSION
", Copyright (C) year name of author
\n
"
"Telegram-client comes with ABSOLUTELY NO WARRANTY; for details type `show_license'.
\n
"
"This is free software, and you are welcome to redistribute it
\n
"
"under certain conditions; type `show_license' for details.
\n
"
);
get_terminal_attributes
();
get_terminal_attributes
();
args_parse
(
argc
,
argv
);
args_parse
(
argc
,
argv
);
...
...
net.h
View file @
f11664c2
...
@@ -27,6 +27,8 @@ struct dc;
...
@@ -27,6 +27,8 @@ struct dc;
#define TG_APP_HASH "36722c72256a24c1225de00eb6a1ca74"
#define TG_APP_HASH "36722c72256a24c1225de00eb6a1ca74"
#define TG_APP_ID 2899
#define TG_APP_ID 2899
#define TG_VERSION "0.01-beta"
#define ACK_TIMEOUT 60
#define ACK_TIMEOUT 60
#define MAX_DC_ID 10
#define MAX_DC_ID 10
...
...
queries.c
View file @
f11664c2
...
@@ -59,7 +59,6 @@ int alarm_query (struct query *q) {
...
@@ -59,7 +59,6 @@ int alarm_query (struct query *q) {
if
(
verbosity
)
{
if
(
verbosity
)
{
logprintf
(
"Alarm query %lld
\n
"
,
q
->
msg_id
);
logprintf
(
"Alarm query %lld
\n
"
,
q
->
msg_id
);
}
}
tree_delete_query
(
queries_tree
,
q
);
q
->
ev
.
timeout
=
get_double_time
()
+
QUERY_TIMEOUT
;
q
->
ev
.
timeout
=
get_double_time
()
+
QUERY_TIMEOUT
;
insert_event_timer
(
&
q
->
ev
);
insert_event_timer
(
&
q
->
ev
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment