Skip to content
Snippets Groups Projects
Commit 784570ee authored by rswindell's avatar rswindell
Browse files

Call bbs.get_time_left(), if it exists, to check the user's time left

(and kick them out when they run out of time).
parent 5412019b
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,13 @@ while(!quit) {
clean_exit();
}
if(bbs.get_time_left && !bbs.get_time_left()) {
sock.send("QUIT :Out of time.\r\n");
quit=1;
sock.close();
clean_exit();
}
if(sock.poll(.01)) {
recieve_command();
screen.update(0);
......
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