Q module: Store default NVs on module load.

This commit is contained in:
Anders Bergh
2014-04-12 15:04:03 +02:00
parent 8ccd95bc6e
commit b5e8ff2599
+6
View File
@@ -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()) {