|
|
@@ -721,7 +721,9 @@ share_pls_ban(int idx, char *par)
|
|
|
time_t expire_time;
|
|
|
char *ban = NULL, *tm = NULL, *from = NULL;
|
|
|
int flags = 0;
|
|
|
+#ifdef LEAF
|
|
|
bool stick = 0;
|
|
|
+#endif /* LEAF */
|
|
|
|
|
|
shareout_but(idx, "+b %s\n", par);
|
|
|
noshare = 1;
|
|
|
@@ -731,7 +733,9 @@ share_pls_ban(int idx, char *par)
|
|
|
from = newsplit(&par);
|
|
|
if (strchr(from, 's')) {
|
|
|
flags |= MASKREC_STICKY;
|
|
|
+#ifdef LEAF
|
|
|
stick++;
|
|
|
+#endif /* LEAF */
|
|
|
}
|
|
|
if (strchr(from, 'p'))
|
|
|
flags |= MASKREC_PERM;
|
|
|
@@ -756,7 +760,9 @@ share_pls_banchan(int idx, char *par)
|
|
|
time_t expire_time;
|
|
|
int flags = 0;
|
|
|
char *ban = NULL, *tm = NULL, *chname = NULL, *from = NULL;
|
|
|
+#ifdef LEAF
|
|
|
bool stick = 0;
|
|
|
+#endif /* LEAF */
|
|
|
struct chanset_t *chan = NULL;
|
|
|
|
|
|
ban = newsplit(&par);
|
|
|
@@ -768,7 +774,9 @@ share_pls_banchan(int idx, char *par)
|
|
|
from = newsplit(&par);
|
|
|
if (strchr(from, 's')) {
|
|
|
flags |= MASKREC_STICKY;
|
|
|
+#ifdef LEAF
|
|
|
stick++;
|
|
|
+#endif /* LEAF */
|
|
|
}
|
|
|
if (strchr(from, 'p'))
|
|
|
flags |= MASKREC_PERM;
|
|
|
@@ -833,7 +841,9 @@ share_pls_exemptchan(int idx, char *par)
|
|
|
int flags = 0;
|
|
|
struct chanset_t *chan = NULL;
|
|
|
char *exempt = NULL, *tm = NULL, *chname = NULL, *from = NULL;
|
|
|
+#ifdef LEAF
|
|
|
bool stick = 0;
|
|
|
+#endif /* LEAF */
|
|
|
|
|
|
exempt = newsplit(&par);
|
|
|
tm = newsplit(&par);
|
|
|
@@ -844,7 +854,9 @@ share_pls_exemptchan(int idx, char *par)
|
|
|
from = newsplit(&par);
|
|
|
if (strchr(from, 's')) {
|
|
|
flags |= MASKREC_STICKY;
|
|
|
+#ifdef LEAF
|
|
|
stick++;
|
|
|
+#endif /* LEAF */
|
|
|
}
|
|
|
if (strchr(from, 'p'))
|
|
|
flags |= MASKREC_PERM;
|
|
|
@@ -871,7 +883,9 @@ share_pls_invite(int idx, char *par)
|
|
|
time_t expire_time;
|
|
|
char *invite = NULL, *tm = NULL, *from = NULL;
|
|
|
int flags = 0;
|
|
|
+#ifdef LEAF
|
|
|
bool stick = 0;
|
|
|
+#endif /* LEAF */
|
|
|
|
|
|
shareout_but(idx, "+inv %s\n", par);
|
|
|
noshare = 1;
|
|
|
@@ -881,7 +895,9 @@ share_pls_invite(int idx, char *par)
|
|
|
from = newsplit(&par);
|
|
|
if (strchr(from, 's')) {
|
|
|
flags |= MASKREC_STICKY;
|
|
|
+#ifdef LEAF
|
|
|
stick++;
|
|
|
+#endif /* LEAF */
|
|
|
}
|
|
|
if (strchr(from, 'p'))
|
|
|
flags |= MASKREC_PERM;
|
|
|
@@ -909,7 +925,9 @@ share_pls_invitechan(int idx, char *par)
|
|
|
int flags = 0;
|
|
|
struct chanset_t *chan = NULL;
|
|
|
char *invite = NULL, *tm = NULL, *chname = NULL, *from = NULL;
|
|
|
+#ifdef LEAF
|
|
|
bool stick = 0;
|
|
|
+#endif /* LEAF */
|
|
|
|
|
|
invite = newsplit(&par);
|
|
|
tm = newsplit(&par);
|
|
|
@@ -920,7 +938,9 @@ share_pls_invitechan(int idx, char *par)
|
|
|
from = newsplit(&par);
|
|
|
if (strchr(from, 's')) {
|
|
|
flags |= MASKREC_STICKY;
|
|
|
+#ifdef LEAF
|
|
|
stick++;
|
|
|
+#endif /* LEAF */
|
|
|
}
|
|
|
if (strchr(from, 'p'))
|
|
|
flags |= MASKREC_PERM;
|