Commit bd55cfdb authored by vvaltman's avatar vvaltman

Merge branch 'patch-1' of https://github.com/Requilence/tg

parents 20435fad 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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment