summaryrefslogtreecommitdiff
path: root/protocols/Tlen/src
diff options
context:
space:
mode:
authordartraiden <wowemuh@gmail.com>2016-12-06 19:57:44 +0300
committerdartraiden <wowemuh@gmail.com>2016-12-06 19:57:44 +0300
commitd47fc1abf17049432e70f436cfd935942a28b51c (patch)
tree44c8e28e105153cb23770a5bf62782e582e55438 /protocols/Tlen/src
parent6dc8111b7f9534aaf7aa22f979857ee0593cae90 (diff)
Tlen: "then" and "else" are identical, so "if" is useless
Diffstat (limited to 'protocols/Tlen/src')
-rw-r--r--protocols/Tlen/src/tlen_svc.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/protocols/Tlen/src/tlen_svc.cpp b/protocols/Tlen/src/tlen_svc.cpp
index be6431cfc3..25442c0dba 100644
--- a/protocols/Tlen/src/tlen_svc.cpp
+++ b/protocols/Tlen/src/tlen_svc.cpp
@@ -743,12 +743,7 @@ int TlenProtocol::FileDeny(MCONTACT, HANDLE hTransfer, const wchar_t*)
TLEN_FILE_TRANSFER *ft = (TLEN_FILE_TRANSFER *)hTransfer;
char *nick = TlenNickFromJID(ft->jid);
- if (ft->newP2P) {
- TlenSend(this, "<f i='%s' e='4' t='%s'/>", ft->iqId, nick); \
- }
- else {
- TlenSend(this, "<f i='%s' e='4' t='%s'/>", ft->iqId, nick); \
- }
+ TlenSend(this, "<f i='%s' e='4' t='%s'/>", ft->iqId, nick); \
mir_free(nick);
TlenP2PFreeFileTransfer(ft);
return 0;