Browse Source

* Port [3708] to 1.2.15
* Fix take with NO_TAKE nets


svn: 3709

Bryan Drewery 18 years ago
parent
commit
8d150ce3e6
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/mod/channels.mod/tclchan.c

+ 4 - 0
src/mod/channels.mod/tclchan.c

@@ -565,6 +565,10 @@ int channel_modify(char *result, struct chanset_t *chan, int items, char **item,
       chan->status |= CHAN_TAKE;
     else if (HAVE_TAKE && !strcmp(item[i], "-take"))
       chan->status &= ~CHAN_TAKE;
+    else if (!HAVE_TAKE && !strcmp(item[i], "+take"))
+      chan->status |= CHAN_BITCH;
+    else if (!HAVE_TAKE && !strcmp(item[i], "-take"))
+      chan->status &= ~CHAN_BITCH;
     else if (!strcmp(item[i], "+voice"))
       chan->status |= CHAN_VOICE;
     else if (!strcmp(item[i], "-voice"))