Commit ea425a30 authored by Per Cederqvist's avatar Per Cederqvist

(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
f.close()
self.__implemented_privbits = {}
f = open("privbits.tmp", "r")
for line in f.readlines():
name = line.strip()
self.__implemented_privbits[name] = nr
f.close()
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)
self.__reader.check_paren_null()
# This is the normal exit of the program. It isn't nice to hide
......
Markdown is supported
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