fix: Don't send notification to connected devices
authorKyle Fuller <redacted>
Fri, 24 Mar 2017 13:40:32 +0000 (14:40 +0100)
committerKyle Fuller <redacted>
Fri, 24 Mar 2017 13:41:04 +0000 (14:41 +0100)
CHANGELOG.md
palaver.cpp

index c9693f8a0a5753af4cea8f553f0983300f69f83c..0316e86d79ed2baba87c3fb3ff40f4ae2fc70559 100644 (file)
@@ -23,6 +23,7 @@
   now produce an error. This detects compilers that do not have a correct regex
   implementation.
 - Prevents stripping colour codes from messages incoming IRC messages.
+- ZNC will no longer send push notifications to backgrounded Palaver devices.
 
 
 ## 1.0.1
index 05dd5c85a8d3aff897daef3dfe0e625759b2e6a5..99ca4d3de8a89073eff6158d6289bc892efef58a 100644 (file)
@@ -1039,6 +1039,10 @@ public:
                        {
                                CDevice& device = **it;
 
+                               if (m_pClient && device.HasClient(*m_pClient)) {
+                                       continue;
+                               }
+
                                if (device.HasNetwork(*m_pNetwork)) {
                                        bool bMention = (
                                                ((pChannel == NULL) || device.HasMentionChannel(pChannel->GetName())) ||
git clone https://git.99rst.org/PROJECT