packages/net/znc/patches/006-Fix-954-Startup-failure-when-simple_away-is-loaded-a.patch
Jonas Gorski e49e86e036 znc: update to 1.6.0
Fixes compilation with musl.

Requires GCC 4.7 or newer, so broken for octeon.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
2015-06-19 13:10:19 +02:00

24 lines
882 B
Diff

From 703a244b9b8c1b4af02a6132c5c70a748d98e3f8 Mon Sep 17 00:00:00 2001
From: J-P Nurmi <jpnurmi@gmail.com>
Date: Tue, 28 Apr 2015 10:00:55 +0200
Subject: [PATCH] Fix #954: Startup failure when simple_away is loaded
after awaynick
---
src/User.cpp | 5 +++++
1 file changed, 5 insertions(+)
--- a/src/User.cpp
+++ b/src/User.cpp
@@ -1101,6 +1101,11 @@ bool CUser::LoadModule(const CString& sM
CFile fNVFile = CFile(GetUserPath() + "/moddata/" + sModName + "/.registry");
for (vector<CIRCNetwork*>::iterator it = m_vIRCNetworks.begin(); it != m_vIRCNetworks.end(); ++it) {
+ // Check whether the network already has this module loaded (#954)
+ if ((*it)->GetModules().FindModule(sModName)) {
+ continue;
+ }
+
if (fNVFile.Exists()) {
CString sNetworkModPath = (*it)->GetNetworkPath() + "/moddata/" + sModName;
if (!CFile::Exists(sNetworkModPath)) {