Skip to content

Commit

Permalink
Merge branch 'patch-1' of https://github.com/Requilence/tg
Browse files Browse the repository at this point in the history
  • Loading branch information
vvaltman committed Apr 28, 2015
2 parents 20435fa + ead522d commit bd55cfd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua-tg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
tgl_insert_empty_chat (TLS, 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 {
P = get_peer (s);
}
Expand Down

0 comments on commit bd55cfd

Please sign in to comment.