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 b612ad5d authored by rswindell's avatar rswindell

Added new multinode chat function.

parent 89f8110b
......@@ -3058,6 +3058,23 @@ void compile(char *src)
fprintf(out,"%c",CS_PRIVATE_MESSAGE);
continue; }
if(!stricmp(p,"MULTINODE_CHAT")) {
if(!(*arg))
ch=1;
else {
if((l=isvar(arg))!=0) {
fputc(CS_USE_INT_VAR,out);
fwrite(&l,4,1,out); // variable
fputc(1,out); // int offset
fputc(1,out); // int length
ch=0; } // place holder
else
ch=val(src,arg);
}
fprintf(out,"%c%c",CS_MULTINODE_CHAT,ch);
continue; }
if(!stricmp(p,"MAIL_READ")) {
fprintf(out,"%c",CS_MAIL_READ);
continue; }
......
This diff is collapsed.
......@@ -112,6 +112,7 @@ enum {
,CS_NODE_STATUS
,CS_CMDCHAR
,CS_COMPARE_CHAR
,CS_MULTINODE_CHAT
,CS_TWO_MORE_BYTES=0x3f
/* Three byte instructions */
......
......@@ -1278,6 +1278,9 @@ int sbbs_t::exec(csi_t *csi)
thisnode.status=*csi->ip++;
putnodedat(cfg.node_num,&thisnode);
return(0);
case CS_MULTINODE_CHAT:
multinodechat(*csi->ip++);
return(0);
case CS_GETSTR:
csi->logic=LOGIC_TRUE;
getstr(csi->str,*csi->ip++,0);
......
......@@ -505,6 +505,7 @@ public:
/* chat.cpp */
void chatsection(void);
void multinodechat(int channel=1);
void nodepage(void);
void nodemsg(void);
int nodemsg_inside;
......@@ -513,7 +514,8 @@ public:
void guruchat(char *line, char *guru, int gurunum);
bool guruexp(char **ptrptr, char *line);
void localguru(char *guru, int gurunum);
void sysop_page(void);
bool sysop_page(void);
bool guru_page(void);
void privchat(bool local=false);
bool chan_access(uint cnum);
int getnodetopage(int all, int telegram);
......
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