From 0e31bd8ab43e3ef233a67be399479ae982052d23 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Tue, 3 Aug 2010 09:28:56 -0400 Subject: Skip invalid allowed modes in oper block (bug #64) --- src/users.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 373e18f46..2bd96ac90 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -651,7 +651,7 @@ void OperInfo::init() { this->AllowedUserModes.set(); } - else + else if (*c >= 'A' && *c < 'z') { this->AllowedUserModes[*c - 'A'] = true; } @@ -663,7 +663,7 @@ void OperInfo::init() { this->AllowedChanModes.set(); } - else + else if (*c >= 'A' && *c < 'z') { this->AllowedChanModes[*c - 'A'] = true; } -- cgit v1.2.3