|
|
@@ -565,7 +565,15 @@ int channel_modify(char *result, struct chanset_t *chan, int items, char **item,
|
|
|
return ERROR;
|
|
|
}
|
|
|
chan->protect_backup = atoi(item[i]);
|
|
|
-
|
|
|
+ } else if (!strcmp(item[i], "fish-key")) {
|
|
|
+ i++;
|
|
|
+ if (i >= items) {
|
|
|
+ set_fish_key(chan->dname, "");
|
|
|
+ return ERROR;
|
|
|
+ }
|
|
|
+ set_fish_key(chan->dname, item[i]);
|
|
|
+ strlcpy(chan->fish_key, item[i], sizeof(chan->fish_key));
|
|
|
+ }
|
|
|
|
|
|
/* Chanint template
|
|
|
* } else if (!strcmp(item[i], "temp")) {
|
|
|
@@ -577,8 +585,6 @@ int channel_modify(char *result, struct chanset_t *chan, int items, char **item,
|
|
|
* }
|
|
|
* chan->temp = atoi(item[i]);
|
|
|
*/
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
else if (!strcmp(item[i], "+enforcebans"))
|
|
|
chan->status |= CHAN_ENFORCEBANS;
|
|
|
@@ -1009,6 +1015,7 @@ int channel_add(char *result, const char *newname, char *options, bool isdefault
|
|
|
chan->groups = new bd::Array<bd::String>;
|
|
|
*(chan->groups) << "main";
|
|
|
chan->protect_backup = 1;
|
|
|
+ chan->fish_key[0] = 0;
|
|
|
chan->knock_flags = 0;
|
|
|
chan->flood_lock_time = 120;
|
|
|
chan->flood_exempt_mode = 0;
|