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
3fc3d331
Commit
3fc3d331
authored
Oct 24, 2013
by
vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added help. FIxed get dialog list
parent
7f47948c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
interface.c
interface.c
+18
-0
queries.c
queries.c
+5
-1
No files found.
interface.c
View file @
3fc3d331
...
@@ -347,6 +347,24 @@ void interpreter (char *line UU) {
...
@@ -347,6 +347,24 @@ void interpreter (char *line UU) {
}
}
do_get_history
(
Peers
[
index
],
limit
);
do_get_history
(
Peers
[
index
],
limit
);
}
}
}
else
if
(
!
memcmp
(
line
,
"help"
,
4
))
{
print_start
();
push_color
(
COLOR_YELLOW
);
printf
(
"help - prints this help
\n
"
"msg <peer> Text - sends message to this peer
\n
"
"contact_list - prints info about users in your contact list
\n
"
"stats - just for debugging
\n
"
"history <peerd> [limit] - prints history (and marks it as read). Default limit = 40
\n
"
"dialog_list - prints info about your dialogs
\n
"
"send_photo <peer> <photo-file-name> - sends photo to peer
\n
"
"send_video <peer> <video-file-name> - sends video to peer
\n
"
"send_text <peer> <text-file-name> - sends text file as plain messages
\n
"
"chat_info <chat> - prints info about chat
\n
"
);
pop_color
();
print_end
();
printf
(
"
\033
[1K
\033
H"
);
}
}
}
}
...
...
queries.c
View file @
3fc3d331
...
@@ -655,7 +655,11 @@ void do_get_history (union user_chat *U, int limit) {
...
@@ -655,7 +655,11 @@ void do_get_history (union user_chat *U, int limit) {
}
}
int
get_dialogs_on_answer
(
struct
query
*
q
UU
)
{
int
get_dialogs_on_answer
(
struct
query
*
q
UU
)
{
assert
(
fetch_int
()
==
CODE_messages_dialogs
);
unsigned
x
=
fetch_int
();
assert
(
x
==
CODE_messages_dialogs
||
x
==
CODE_messages_dialogs_slice
);
if
(
x
==
CODE_messages_dialogs_slice
)
{
fetch_int
();
// total_count
}
assert
(
fetch_int
()
==
CODE_vector
);
assert
(
fetch_int
()
==
CODE_vector
);
int
n
,
i
;
int
n
,
i
;
n
=
fetch_int
();
n
=
fetch_int
();
...
...
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