diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-09-04 22:52:12 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-09-04 22:52:12 +0100 |
| commit | 7c796758d1b65d4d7585c90ba71b1fb339a4d283 (patch) | |
| tree | 232547ccf785f9413d039522d15b0cbfa5bf1618 /BBSUtilities.c | |
| parent | fa3201d982100b5168f155f7c544f4fc902079d7 (diff) | |
New upstream version 6.0.25.1+repackupstream/6.0.25.1+repack
Diffstat (limited to 'BBSUtilities.c')
| -rw-r--r-- | BBSUtilities.c | 15 |
1 files changed, 14 insertions, 1 deletions
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));
|
