From bdc25f3fc93d425d73f8dbb8087368dce6a49124 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 10 Jan 2002 14:24:09 +0000 Subject: fixed so we can comment lines in configfile --- src/Keys.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Keys.cc b/src/Keys.cc index 5db7f69..92fa617 100644 --- a/src/Keys.cc +++ b/src/Keys.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -//$Id: Keys.cc,v 1.7 2002/01/09 14:11:20 fluxgen Exp $ +//$Id: Keys.cc,v 1.8 2002/01/10 14:24:09 fluxgen Exp $ #ifdef HAVE_CONFIG_H # include "config.h" @@ -200,7 +200,9 @@ bool Keys::load(char *filename) { //must have at least 1 argument if (val.size()<=0) continue; - + + if (val[0][0]=='#') //the line is commented + continue; unsigned int key=0, mod=0; char keyarg=0; -- cgit v0.11.2