projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Refactor Cipher related things.
[quassel.git]
/
src
/
core
/
ircparser.cpp
diff --git
a/src/core/ircparser.cpp
b/src/core/ircparser.cpp
index
69603c1
..
f71f53c
100644
(file)
--- a/
src/core/ircparser.cpp
+++ b/
src/core/ircparser.cpp
@@
-58,7
+58,7
@@
QByteArray IrcParser::decrypt(Network *network, const QString &bufferName, const
return message;
Cipher *cipher = qobject_cast<CoreNetwork *>(network)->cipher(bufferName);
- if (!cipher)
+ if (!cipher
|| cipher->key().isEmpty()
)
return message;
return isTopic ? cipher->decryptTopic(message) : cipher->decrypt(message);