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
ead522dc
Commit
ead522dc
authored
Apr 26, 2015
by
Roman Khafizianov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Peer name parsing inconsistent fix
Full peer name with omitted "id" not working in some cases
parent
5da1506e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lua-tg.c
lua-tg.c
+6
-0
No files found.
lua-tg.c
View file @
ead522dc
...
@@ -1236,6 +1236,12 @@ static int parse_lua_function (lua_State *L, struct lua_function *F) {
...
@@ -1236,6 +1236,12 @@ static int parse_lua_function (lua_State *L, struct lua_function *F) {
}
else
if
(
sscanf
(
s
,
"chat#id%lld"
,
&
num
)
==
1
&&
num
>
0
)
{
}
else
if
(
sscanf
(
s
,
"chat#id%lld"
,
&
num
)
==
1
&&
num
>
0
)
{
tgl_insert_empty_chat
(
TLS
,
num
);
tgl_insert_empty_chat
(
TLS
,
num
);
P
=
tgl_peer_get
(
TLS
,
TGL_MK_CHAT
(
num
));
P
=
tgl_peer_get
(
TLS
,
TGL_MK_CHAT
(
num
));
}
else
if
(
sscanf
(
s
,
"user#%lld"
,
&
num
)
==
1
&&
num
>
0
)
{
tgl_insert_empty_user
(
TLS
,
num
);
P
=
tgl_peer_get
(
TLS
,
TGL_MK_USER
(
num
));
}
else
if
(
sscanf
(
s
,
"chat#%lld"
,
&
num
)
==
1
&&
num
>
0
)
{
tgl_insert_empty_chat
(
TLS
,
num
);
P
=
tgl_peer_get
(
TLS
,
TGL_MK_CHAT
(
num
));
}
else
{
}
else
{
P
=
get_peer
(
s
);
P
=
get_peer
(
s
);
}
}
...
...
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