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
e36ec84b
Commit
e36ec84b
authored
Jun 24, 2015
by
vvaltman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated tgl. fixed layer 31
parent
3dab3ac5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
interface.c
interface.c
+11
-1
tgl
tgl
+1
-1
No files found.
interface.c
View file @
e36ec84b
...
...
@@ -1340,6 +1340,15 @@ void do_get_message (struct command *command, int arg_num, struct arg args[], st
/* }}} */
/* {{{ BOT */
void
do_start_bot
(
struct
command
*
command
,
int
arg_num
,
struct
arg
args
[],
struct
in_ev
*
ev
)
{
assert
(
arg_num
==
3
);
if
(
ev
)
{
ev
->
refcnt
++
;
}
tgl_do_start_bot
(
TLS
,
args
[
0
].
P
->
id
,
args
[
1
].
P
->
id
,
ARG2STR
(
2
),
print_success_gw
,
ev
);
}
/* }}} */
extern
char
*
default_username
;
extern
char
*
config_filename
;
extern
char
*
prefix
;
...
...
@@ -1452,6 +1461,7 @@ struct command commands[MAX_COMMANDS_SIZE] = {
{
"set_ttl"
,
{
ca_secret_chat
,
ca_number
,
ca_none
},
do_set_ttl
,
"set_ttl <secret chat>
\t
Sets secret chat ttl. Client itself ignores ttl"
,
NULL
},
{
"set_username"
,
{
ca_string
,
ca_none
},
do_set_username
,
"set_username <name>
\t
Sets username."
,
NULL
},
{
"show_license"
,
{
ca_none
},
do_show_license
,
"show_license
\t
Prints contents of GPL license"
,
NULL
},
{
"start_bot"
,
{
ca_user
,
ca_chat
,
ca_string
,
ca_none
},
do_start_bot
,
"start_bot <bot> <chat> <data>
\t
Adds bot to chat"
,
NULL
},
{
"stats"
,
{
ca_none
},
do_stats
,
"stats
\t
For debug purpose"
,
NULL
},
{
"status_online"
,
{
ca_none
},
do_status_online
,
"status_online
\t
Sets status as online"
,
NULL
},
{
"status_offline"
,
{
ca_none
},
do_status_offline
,
"status_offline
\t
Sets status as offline"
,
NULL
},
...
...
@@ -2216,7 +2226,7 @@ void print_user_info_gw (struct tgl_state *TLSR, void *extra, int success, struc
int
i
;
for
(
i
=
0
;
i
<
U
->
bot_info
->
commands_num
;
i
++
)
{
mprintf
(
ev
,
"
\t\t
/%s
<%s>: %s
\n
"
,
U
->
bot_info
->
commands
[
i
].
command
,
U
->
bot_info
->
commands
[
i
].
params
,
U
->
bot_info
->
commands
[
i
].
description
);
mprintf
(
ev
,
"
\t\t
/%s
: %s
\n
"
,
U
->
bot_info
->
commands
[
i
].
command
,
U
->
bot_info
->
commands
[
i
].
description
);
}
}
mpop_color
(
ev
);
...
...
tgl
@
36f84242
Subproject commit
20e7b42ae1663a8ed388156462714f1b341eb102
Subproject commit
36f84242e97640fa92d05ca3be4381a08a86e076
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