Skip to content

Commit 62a0607

Browse files
author
Stephen Bennett
committedAug 27, 2008
Remove channel::use_forward setting. It's unconditionally enabled
1 parent a869c0a commit 62a0607

File tree

10 files changed

+5
-38
lines changed

10 files changed

+5
-38
lines changed
 

‎include/s_conf.h

-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ struct config_channel_entry
227227
int use_except;
228228
int use_invex;
229229
int use_knock;
230-
int use_forward;
231230
int knock_delay;
232231
int knock_delay_channel;
233232
int max_bans;

‎modules/core/m_join.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ set_final_mode(struct Mode *mode, struct Mode *oldmode)
11351135
len = rb_sprintf(pbuf, "%d:%d ", mode->join_num, mode->join_time);
11361136
pbuf += len;
11371137
}
1138-
if(mode->forward[0] && strcmp(oldmode->forward, mode->forward) && ConfigChannel.use_forward)
1138+
if(mode->forward[0] && strcmp(oldmode->forward, mode->forward))
11391139
{
11401140
if(dir != MODE_ADD)
11411141
{

‎modules/m_info.c

-6
Original file line numberDiff line numberDiff line change
@@ -566,12 +566,6 @@ static struct InfoStruct info_table[] = {
566566
&ConfigChannel.use_invex,
567567
"Enable chanmode +I (invite exceptions)",
568568
},
569-
{
570-
"use_forward",
571-
OUTPUT_BOOLEAN_YN,
572-
&ConfigChannel.use_forward,
573-
"Enable chanmode +f (channel forwarding)",
574-
},
575569
{
576570
"use_knock",
577571
OUTPUT_BOOLEAN_YN,

‎scripts/makerelease.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ else
88
fi
99

1010
if [ "x$2" = "x" ]; then
11-
COMMIT=master
11+
COMMIT=HEAD
1212
else
1313
COMMIT=$2
1414
fi

‎src/channel.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ channel_modes(struct Channel *chptr, struct Client *client_p)
11421142
chptr->mode.join_time);
11431143
}
11441144

1145-
if(*chptr->mode.forward && (ConfigChannel.use_forward || !IsClient(client_p)))
1145+
if(*chptr->mode.forward)
11461146
{
11471147
*mbuf++ = 'f';
11481148

‎src/chmode.c

+1-19
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,6 @@ construct_noparam_modes(void)
118118

119119
switch (chmode_flags[i])
120120
{
121-
case MODE_EXLIMIT:
122-
case MODE_DISFORWARD:
123-
if(ConfigChannel.use_forward)
124-
{
125-
*ptr++ = (char) i;
126-
}
127-
128-
break;
129121
case MODE_REGONLY:
130122
if(rb_dlink_list_length(&service_list))
131123
{
@@ -530,11 +522,6 @@ chm_simple(struct Client *source_p, struct Channel *chptr,
530522
/* setting + */
531523
if((dir == MODE_ADD) && !(chptr->mode.mode & mode_type))
532524
{
533-
/* if +f is disabled, ignore an attempt to set +QF locally */
534-
if(!ConfigChannel.use_forward && MyClient(source_p) &&
535-
(c == 'Q' || c == 'F'))
536-
return;
537-
538525
chptr->mode.mode |= mode_type;
539526

540527
mode_changes[mode_count].letter = c;
@@ -1201,11 +1188,6 @@ chm_forward(struct Client *source_p, struct Channel *chptr,
12011188
struct membership *msptr;
12021189
const char *forward;
12031190

1204-
/* if +f is disabled, ignore local attempts to set it */
1205-
if(!ConfigChannel.use_forward && MyClient(source_p) &&
1206-
(dir == MODE_ADD) && (parc > *parn))
1207-
return;
1208-
12091191
if(dir == MODE_QUERY || (dir == MODE_ADD && parc <= *parn))
12101192
{
12111193
if (!(*errors & SM_ERR_RPL_F))
@@ -1284,7 +1266,7 @@ chm_forward(struct Client *source_p, struct Channel *chptr,
12841266
mode_changes[mode_count].dir = MODE_ADD;
12851267
mode_changes[mode_count].caps = 0;
12861268
mode_changes[mode_count].nocaps = 0;
1287-
mode_changes[mode_count].mems = ConfigChannel.use_forward ? ALL_MEMBERS : ONLY_SERVERS;
1269+
mode_changes[mode_count].mems = ALL_MEMBERS;
12881270
mode_changes[mode_count].id = NULL;
12891271
mode_changes[mode_count++].arg = forward;
12901272
}

‎src/newconf.c

-1
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,6 @@ static struct ConfEntry conf_channel_table[] =
21842184
{ "use_except", CF_YESNO, NULL, 0, &ConfigChannel.use_except },
21852185
{ "use_invex", CF_YESNO, NULL, 0, &ConfigChannel.use_invex },
21862186
{ "use_knock", CF_YESNO, NULL, 0, &ConfigChannel.use_knock },
2187-
{ "use_forward", CF_YESNO, NULL, 0, &ConfigChannel.use_forward },
21882187
{ "\0", 0, NULL, 0, NULL }
21892188
};
21902189

‎src/s_conf.c

-1
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,6 @@ set_default_conf(void)
792792
ConfigChannel.use_except = YES;
793793
ConfigChannel.use_invex = YES;
794794
ConfigChannel.use_knock = YES;
795-
ConfigChannel.use_forward = YES;
796795
ConfigChannel.knock_delay = 300;
797796
ConfigChannel.knock_delay_channel = 60;
798797
ConfigChannel.max_chans_per_user = 15;

‎src/s_user.c

-5
Original file line numberDiff line numberDiff line change
@@ -1057,11 +1057,6 @@ user_mode(struct Client *client_p, struct Client *source_p, int parc, const char
10571057
}
10581058
/* FALLTHROUGH */
10591059
default:
1060-
if (MyConnect(source_p) && *pm == 'Q' && !ConfigChannel.use_forward) {
1061-
badflag = YES;
1062-
break;
1063-
}
1064-
10651060
if((flag = user_modes[(unsigned char) *pm]))
10661061
{
10671062
if(MyConnect(source_p)

‎src/supported.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,9 @@ isupport_chanmodes(const void *ptr)
210210
{
211211
static char result[80];
212212

213-
rb_snprintf(result, sizeof result, "%s%sbq,k,%slj,%s",
213+
rb_snprintf(result, sizeof result, "%s%sbq,k,flj,%s",
214214
ConfigChannel.use_except ? "e" : "",
215215
ConfigChannel.use_invex ? "I" : "",
216-
ConfigChannel.use_forward ? "f" : "",
217216
cflagsbuf);
218217
return result;
219218
}

0 commit comments

Comments
 (0)
Please sign in to comment.