Commit ea425a30 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(lexer.__init__): Load "privbits.tmp".

(lexer.toplevel_bye): Check Priv-Bits.  (Bug 207).
parent 7ec6f0a0
......@@ -302,6 +302,13 @@ class lexer:
self.__implemented_conftypes[name] = nr
self.__implemented_privbits = {}
f = open("privbits.tmp", "r")
for line in f.readlines():
name = line.strip()
self.__implemented_privbits[name] = nr
def run(self):
while 1:
c = self.__reader.getc()
......@@ -649,6 +656,11 @@ class lexer:
self.error(self.__reader.line_no(), emsg)
for emsg in defined_types['Priv-Bits'].check_implemented(
"conference type", self.__implemented_privbits):
self.error(self.__reader.line_no(), emsg)
# This is the normal exit of the program. It isn't nice to hide
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment