summaryrefslogtreecommitdiff
path: root/src/conf_parser.y
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-10 17:34:09 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-10 17:34:09 +0000
commit068f769876940baf8e76c9597e8ee5c0f73c48bc (patch)
treea3c0ad7e0319f6af48a11f5ea782ce26c5339915 /src/conf_parser.y
parentd38dcbfe747f7cf48a024187038aef3afe662aeb (diff)
- conf_parser.y: fixed some logic errors
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1648 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src/conf_parser.y')
-rw-r--r--src/conf_parser.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/conf_parser.y b/src/conf_parser.y
index edb2760..3dfdf76 100644
--- a/src/conf_parser.y
+++ b/src/conf_parser.y
@@ -1365,7 +1365,7 @@ listen_flags_item: T_SSL
listen_items: listen_items listen_item | listen_item;
listen_item: listen_port | listen_flags | listen_address | listen_host | error ';';
-listen_port: PORT '=' port_items { block_state.flags.value |= 0; } ';';
+listen_port: PORT '=' port_items { block_state.flags.value = 0; } ';';
port_items: port_items ',' port_item | port_item;
@@ -1497,7 +1497,7 @@ auth_encrypted: ENCRYPTED '=' TBOOL ';'
auth_flags: IRCD_FLAGS
{
if (conf_parser_ctx.pass == 2)
- block_state.flags.value = 0;
+ block_state.flags.value &= CONF_FLAGS_ENCRYPTED;
} '=' auth_flags_items ';';
auth_flags_items: auth_flags_items ',' auth_flags_item | auth_flags_item;
@@ -1834,8 +1834,8 @@ connect_entry: CONNECT
if (conf_parser_ctx.pass != 2)
break;
- if (!(block_state.name.buf[0] ||
- block_state.host.buf[0]))
+ if (!block_state.name.buf[0] ||
+ !block_state.host.buf[0])
break;
if (!(block_state.rpass.buf[0] ||
@@ -1956,7 +1956,7 @@ connect_aftype: AFTYPE '=' T_IPV4 ';'
connect_flags: IRCD_FLAGS
{
-/* XXX */
+ block_state.flags.value &= CONF_FLAGS_ENCRYPTED;
} '=' connect_flags_items ';';
connect_flags_items: connect_flags_items ',' connect_flags_item | connect_flags_item;