diff options
Diffstat (limited to 'util/toplazyBBM.c')
-rw-r--r-- | util/toplazyBBM.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util/toplazyBBM.c b/util/toplazyBBM.c index 739539a5..c46d029b 100644 --- a/util/toplazyBBM.c +++ b/util/toplazyBBM.c @@ -9,7 +9,6 @@ extern boardheader_t *bcache; extern int numboards; boardheader_t allbrd[MAX_BOARD]; -extern userec_t xuser; typedef struct lostbm { char *bmname; char *title; @@ -89,12 +88,14 @@ int main(int argc, char *argv[]) char *p, bmbuf[IDLEN * 3 + 3]; int index = 0, flag = 0, k, n; p=strtok(allbrd[i].BM,"/ "); + userec_t xuser; + if(p) do { if(allbrd[i].brdname[0] == '\0' || (allbrd[i].brdattr & BRD_GROUPBOARD) ==0 ) continue; if (*p == '[' ){p[strlen(p)-1]='\0'; p++;} - bmid=getuser(p); + bmid=getuser(p, &xuser); bms[index].bmname = p; bms[index].flag = 0; if (((((int)time(NULL)-(int)xuser.lastlogin)/(60*60*24))>=7) |