~paulbrianstewart/quassel/833751-String-Error-Fix

« back to all changes in this revision

Viewing changes to src/core/ircparser.cpp

  • Committer: Johannes Huber
  • Date: 2011-03-17 13:19:18 UTC
  • Revision ID: git-v1:393ac8b4bca9db98f297cb4756ef2e79364bf6f0
check for qca provider plugin, fixes #1045

Prevents core from crashing when qca provider plugin is missing.
The plugin is needed at runtime. Can occurres when packagers did
not install it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
  if(message.isEmpty())
51
51
    return message;
52
52
 
 
53
  if(!Cipher::neededFeaturesAvailable())
 
54
    return message;
 
55
 
53
56
  Cipher *cipher = qobject_cast<CoreNetwork *>(network)->cipher(bufferName);
54
57
  if(!cipher)
55
58
    return message;