diff options
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));
|
