summaryrefslogtreecommitdiff
path: root/MBLRoutines.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-12-16 17:54:16 +0000
committerDave Hibberd <hibby@debian.org>2024-12-16 17:54:16 +0000
commita7d635fe2f04abcc3683f680f6a05ff9b11bf3aa (patch)
tree898cca0ff2fe5fe2cdee6e6ed6bf72f23cae463a /MBLRoutines.c
parent93a10a982d3fcab0c469e2805b2034bba4e59a55 (diff)
New upstream version 6.0.24.54+repackupstream/6.0.24.54+repack
Diffstat (limited to 'MBLRoutines.c')
-rw-r--r--MBLRoutines.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/MBLRoutines.c b/MBLRoutines.c
index 87d3d8a..0d33e53 100644
--- a/MBLRoutines.c
+++ b/MBLRoutines.c
@@ -24,6 +24,7 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses
#include "bpqmail.h"
void SendMessageReadEvent(char * call, struct MsgInfo * Msg);
+void MQTTMessageEvent(void* message);
VOID ProcessMBLLine(CIRCUIT * conn, struct UserInfo * user, UCHAR* Buffer, int len)
@@ -199,6 +200,12 @@ VOID ProcessMBLLine(CIRCUIT * conn, struct UserInfo * user, UCHAR* Buffer, int l
}
conn->FwdMsg->Locked = 0; // Unlock
+
+#ifndef NOMQTT
+ if (MQTT)
+ MQTTMessageEvent(conn->FwdMsg);
+#endif
+
}
return;
@@ -282,7 +289,7 @@ VOID ProcessMBLLine(CIRCUIT * conn, struct UserInfo * user, UCHAR* Buffer, int l
{
// Reverse forward request
- // If we have just sent a nessage, Flag it as sent
+ // If we have just sent a message, Flag it as sent
if (conn->FBBMsgsSent)
{
@@ -300,6 +307,11 @@ VOID ProcessMBLLine(CIRCUIT * conn, struct UserInfo * user, UCHAR* Buffer, int l
conn->FwdMsg->Locked = 0; // Unlock
+#ifndef NOMQTT
+ if (MQTT)
+ MQTTMessageEvent(conn->FwdMsg);
+#endif
+
conn->UserPointer->ForwardingInfo->MsgCount--;
}
@@ -354,6 +366,11 @@ VOID ProcessMBLLine(CIRCUIT * conn, struct UserInfo * user, UCHAR* Buffer, int l
conn->FwdMsg->datechanged=time(NULL);
}
+#ifndef NOMQTT
+ if (MQTT)
+ MQTTMessageEvent(conn->FwdMsg);
+#endif
+
conn->UserPointer->ForwardingInfo->MsgCount--;
}