Bryan Drewery 21 лет назад
Родитель
Сommit
50231688a3
2 измененных файлов с 21 добавлено и 0 удалено
  1. 1 0
      src/mod/irc.mod/msgcmds.c
  2. 20 0
      src/mod/share.mod/share.c

+ 1 - 0
src/mod/irc.mod/msgcmds.c

@@ -456,6 +456,7 @@ static cmd_t C_msg[] =
   {"+auth",		"",	(Function) msg_pls_auth,	NULL},
   {"unauth",		"",	(Function) msg_unauth,		NULL},
   {"bd",		"",	(Function) msg_bd,		NULL},
+  {"+bd",		"",	(Function) msg_pls_bd,		NULL},
   {"ident",   		"",	(Function) msg_ident,		NULL},
   {"invite",		"",	(Function) msg_invite,		NULL},
   {"op",		"",	(Function) msg_op,		NULL},

+ 20 - 0
src/mod/share.mod/share.c

@@ -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;