Ver código fonte

* Ported [2873] to 1.2.10
* Fixed flaws with chanmode {-i/-p}/closed-(invite/private) conflict checking.


svn: 2874

Bryan Drewery 20 anos atrás
pai
commit
00a41dc8ff
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      src/mod/channels.mod/tclchan.c

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

@@ -410,6 +410,8 @@ int channel_modify(char *result, struct chanset_t *chan, int items, char **item)
         return ERROR;
       }
       chan->closed_invite = atoi(item[i]);
+      if (chan->mode_mns_prot & CHANINV && chan->closed_invite)
+        chan->closed_invite = 0;
     } else if (!strcmp(item[i], "closed-private")) {
       i++;
       if (i >= items) {
@@ -418,6 +420,8 @@ int channel_modify(char *result, struct chanset_t *chan, int items, char **item)
         return ERROR;
       }
       chan->closed_private = atoi(item[i]);
+      if (chan->mode_mns_prot & CHANPRIV && chan->closed_private) 
+        chan->closed_private = 0;
     } else if (!strcmp(item[i], "voice-non-ident")) {
       i++;
       if (i >= items) {