long PutTo;
long State;
- WantThisOne = GetTemplateTokenNumber(Target, TP, 5, 0);
- if (WantThisOne == 0)
+ WantThisOne = GetTemplateTokenNumber(Target, TP, 5, -1);
+ if ((WantThisOne < 0) || (WantThisOne > maxRoomNetCfg))
return NULL;
- if (WCC->CurRoom.IgnetCfgs[0] == (HashList*) StrBufNOTNULL)
+ if (WCC->CurRoom.IgnetCfgs[maxRoomNetCfg] == (HashList*) StrBufNOTNULL)
return WCC->CurRoom.IgnetCfgs[WantThisOne];
- WCC->CurRoom.IgnetCfgs[0] = (HashList*) StrBufNOTNULL;
+ WCC->CurRoom.IgnetCfgs[maxRoomNetCfg] = (HashList*) StrBufNOTNULL;
serv_puts("GNET");
Line = NewStrBuf();
Token = NewStrBuf();
StrBuf_ServGetln(Line);
StrBufExtract_NextToken(Token, Line, &Pos, '|');
PutTo = GetTokenDefine(SKEY(Token), -1);
- if ((PutTo > 0) &&
+ if ((PutTo >= 0) &&
(PutTo < maxRoomNetCfg) &&
(Pos != StrBufNOTNULL))
{
HashList *SubH;
if (WCC->CurRoom.IgnetCfgs[PutTo] == NULL)
+ {
+ n = 0;
WCC->CurRoom.IgnetCfgs[PutTo] = NewHash(1, NULL);
+ }
+ else
+ {
+ n = GetCount(WCC->CurRoom.IgnetCfgs[PutTo]);
+ }
SubH = NewHash(1, NULL);
- n = GetCount(WCC->CurRoom.IgnetCfgs[PutTo]) + 1;
Put(WCC->CurRoom.IgnetCfgs[PutTo],
IKEY(n),
SubH,
HDeleteHash);
+ n = 0;
while (Pos != StrBufNOTNULL) {
Content = NewStrBuf();
StrBufExtract_NextToken(Content, Line, &Pos, '|');
StrBuf *Buf;
Buf = NewStrBuf();
+ DBG_QR(Room->QRFlags);
+ DBG_QR2(Room->QRFlags2);
+
serv_printf("SETR %s|%s|%s|%ld|%d|%d|%ld|%ld|%ld",
ChrPtr(Room->name),
ChrPtr(Room->XAPass),
int BumpUsers; /* if SETR set to 1 to make all users who knew this room to forget about it. */
- HashList *IgnetCfgs[maxRoomNetCfg];
+ HashList *IgnetCfgs[maxRoomNetCfg + 1];
}folder;
HashList *GetFloorListHash(StrBuf *Target, WCTemplputParams *TP);
-<?CONTEXTSTR("X")><a href="netedit?cmd=remove?tab=listserv?line=digestrecp|<?CONTEXTSTR("U")>"><?_("(remove)")></a><br />
+<a href="netedit?cmd=remove?tab=listserv?line=digestrecp|<?CONTEXTSTRARR("U")>"><?_("(remove)")></a><br />
-<?CONTEXTSTR("X")><a href="netedit?cmd=remove?tab=listserv?line=listrecp|<?CONTEXTSTR("U")>"><?_("(remove)")></a><br />
+<a href="netedit?cmd=remove?tab=listserv?line=listrecp|<?CONTEXTSTRARR("U")>"><?_("(remove)")></a><br />
<br />
<form method="get" action="toggle_self_service">
- <!-- Self Service subscription? -->
<table>
- <tr>
- <td><?_("Allow self-service subscribe/unsubscribe requests.")></td>
- <td><input type="checkbox" name="QR2_SelfList" value="yes" <?%("COND:THISROOM:FLAG:QR2", 20, #"QR2_SELFLIST", 1, 'checked="checked" ', "")> /></td>
- </tr>
- <tr>
- <td colspan="2">
- <?_("The URL for subscribe/unsubscribe is: ")>
- <tt><?%("COND:IS_HTTPS", 3, 1, 0, "https", "http")>://<?SERV:FQDN>/listsub</tt>
- </td>
- </tr>
<!-- Public posting? -->
<tr>
<td><?_("Allow non-subscribers to mail to this room.")></td>
<td><?_("Room post publication needs Aide permission.")></td>
<td><input type="checkbox" name="QR2_Moderated" value="yes" <?%("COND:THISROOM:FLAG:QR2", 20, #"QR2_MODERATED", 1, 'checked="checked" ', "")> /></td>
</tr>
+ <!-- Self Service subscription? -->
+ <tr>
+ <td><?_("Allow self-service subscribe/unsubscribe requests.")></td>
+ <td><input type="checkbox" name="QR2_SelfList" value="yes" <?%("COND:THISROOM:FLAG:QR2", 20, #"QR2_SELFLIST", 1, 'checked="checked" ', "")> /></td>
+ </tr>
+ <tr>
+ <!-- Give the admin some hint how to access the subscriber interface -->
+ <td colspan="2">
+ <?_("The URL for subscribe/unsubscribe is: ")>
+ <tt><?%("COND:IS_HTTPS", 3, 1, 0, "https", "http")>://<?SERV:FQDN>/listsub</tt>
+ </td>
+ </tr>
+
<tr>
<td colspan="2" align="center">
<input type="hidden" name="last_tabsel" value="<?TAB:N>" />