diff options
author | Trumeet <yuuta@yuuta.moe> | 2022-01-12 21:45:19 -0800 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2022-01-12 21:45:19 -0800 |
commit | 4fa5d022430ded38d18b4f1cca572ac7a800cfe1 (patch) | |
tree | 5ca75670c7fd73cb3c3bed24f20a5fde5dd955d2 | |
parent | b84d47972e0667d22264a01e185f17af6d96277e (diff) | |
download | mutebot-4fa5d022430ded38d18b4f1cca572ac7a800cfe1.tar mutebot-4fa5d022430ded38d18b4f1cca572ac7a800cfe1.tar.gz mutebot-4fa5d022430ded38d18b4f1cca572ac7a800cfe1.tar.bz2 mutebot-4fa5d022430ded38d18b4f1cca572ac7a800cfe1.zip |
Do not automatically logout
It causes issues with things like locks.
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | tdutils.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -42,10 +42,10 @@ Currently, there are only a few options for you: ### Log out -TDLib treats bots as normal accounts, so you need to log out if you want to change the bot token. To simplify your logout process, MuteBot will automatically logout your bot if you send SIGINT or SIGTERM to the daemon. Therefore, you can safely specify a new bot token at the next startup without worrying that it is still using the old one. However, you may still need to logout manually using the `-l` switch. It does nothing except for logging out the current bot session, if any. +TDLib treats bots as normal accounts, so you need to log out if you want to change the bot token. You may logout using the `-l` switch. It does nothing except for logging out the current bot session, if any. # License WTFPL -by Yuuta Liang <yuuta@yuuta.moe>
\ No newline at end of file +by Yuuta Liang <yuuta@yuuta.moe> @@ -66,7 +66,7 @@ static void *main_sighandler(void *arg) { case SIGINT: case SIGTERM: if (td == -1) goto cleanup; - td_send(TdCreateObjectLogOut(), &fetal_cb, NULL); + tg_close(); goto cleanup; default: break; |