Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 05dd8205 authored by rswindell's avatar rswindell

Created sbbs_t::set_qwk_flag member function.

parent a8d6f404
......@@ -965,3 +965,18 @@ void sbbs_t::qwkcfgline(char *buf,uint subnum)
}
int sbbs_t::set_qwk_flag(ulong flag)
{
int i;
char str[32];
if((i=getuserrec(&cfg,useron.number,U_QWK,8,str))!=0)
return(i);
useron.qwk=ahtoul(str);
useron.qwk|=flag;
if((i=putuserrec(&cfg,useron.number,U_QWK,8,ultoa(useron.qwk,str,16)))!=0)
return(i);
return(0);
}
......@@ -654,6 +654,7 @@ public:
void qwk_success(ulong msgcnt, char bi, char prepack);
void qwksetptr(uint subnum, char *buf, int reset);
void qwkcfgline(char *buf,uint subnum);
int set_qwk_flag(ulong flag);
/* pack_qwk.cpp */
bool pack_qwk(char *packet, ulong *msgcnt, bool prepack);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment