Skip to content
Snippets Groups Projects
Commit 69262a70 authored by deuce's avatar deuce
Browse files

system.node_list[] is zero-based.

parent 895e6f51
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,7 @@ telegram_buf += message;
/* TODO cache cookies and prevent dupes */
if(recipient != "") {
if(to_node) {
if(system.node_list[to_node].useron==usernum) {
if(system.node_list[to_node-1].useron==usernum) {
send_response=system.put_node_message(to_node, telegram_buf);
log("Attempt to send node message: "+(send_response?"Success":"Failure"));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment