From b5e8ff259989f5a52a2a95419a27dc4c92f65183 Mon Sep 17 00:00:00 2001 From: Anders Bergh Date: Sat, 12 Apr 2014 15:04:03 +0200 Subject: [PATCH] Q module: Store default NVs on module load. --- modules/q.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/q.cpp b/modules/q.cpp index 7811bc69..6b4f650c 100644 --- a/modules/q.cpp +++ b/modules/q.cpp @@ -45,6 +45,12 @@ public: m_bRequestPerms = GetNV("RequestPerms").ToBool(); m_bJoinOnInvite = (sTmp = GetNV("JoinOnInvite")).empty() ? true : sTmp.ToBool(); + // Make sure NVs are stored in config + SetUseCloakedHost(m_bUseCloakedHost); + SetUseChallenge(m_bUseChallenge); + SetRequestPerms(m_bRequestPerms); + SetJoinOnInvite(m_bJoinOnInvite); + OnIRCDisconnected(); // reset module's state if (IsIRCConnected()) {