Don't use m_pClient from a global module hook
authorKyle Fuller <redacted>
Tue, 4 Jun 2013 17:10:29 +0000 (18:10 +0100)
committerKyle Fuller <redacted>
Tue, 4 Jun 2013 17:10:29 +0000 (18:10 +0100)
Fixes #5

palaver.cpp

index 4bee0275d5aece0924698cccffaf5e97a951d023..3f85379bce322ad783b3cb8ecd84d248ee61d435 100644 (file)
@@ -377,9 +377,9 @@ public:
                        CString sCommand = sLine.Token(1);
 
                        if (sCommand.Equals("BACKGROUND")) {
-                               m_pClient->SetAway(true);
+                               pClient->SetAway(true);
                        } else if (sCommand.Equals("FOREGROUND")) {
-                               m_pClient->SetAway(false);
+                               pClient->SetAway(false);
                        } else if (sCommand.Equals("IDENTIFY")) {
                                CDevice *pDevice = DeviceForClient(*pClient);
                                if (pDevice) {
git clone https://git.99rst.org/PROJECT