From 7c796758d1b65d4d7585c90ba71b1fb339a4d283 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Thu, 4 Sep 2025 22:52:12 +0100 Subject: New upstream version 6.0.25.1+repack --- BBSUtilities.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'BBSUtilities.c') diff --git a/BBSUtilities.c b/BBSUtilities.c index 90b4c7b..e803500 100644 --- a/BBSUtilities.c +++ b/BBSUtilities.c @@ -531,7 +531,20 @@ struct MsgInfo * GetMsgFromNumber(int msgno) return MsgnotoMsg[msgno]; } - + +int GetMessageSlotFromMessageNumber(int msgno) +{ + int i; + + for (i=1; i <= NumberofMessages; i++) + { + if (MsgHddrPtr[i]->number == msgno) + return i; + } + + return 0; +} + struct UserInfo * AllocateUserRecord(char * Call) { struct UserInfo * User = zalloc(sizeof (struct UserInfo)); -- cgit v1.2.3