diff options
Diffstat (limited to 'protocols/Telegram/src/proto.cpp')
-rw-r--r-- | protocols/Telegram/src/proto.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp index c0e92ecc40..1354be1c33 100644 --- a/protocols/Telegram/src/proto.cpp +++ b/protocols/Telegram/src/proto.cpp @@ -182,8 +182,10 @@ void CTelegramProto::OnBuildProtoMenu() void CTelegramProto::OnErase() { - m_bUnregister = true; - ServerThread(0); + if (getByte(DBKEY_AUTHORIZED)) { + m_bUnregister = true; + ServerThread(0); + } DeleteDirectoryTreeW(GetProtoFolder(), false); } |