diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2010-08-03 09:28:56 -0400 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-08-03 09:28:56 -0400 |
commit | 0e31bd8ab43e3ef233a67be399479ae982052d23 (patch) | |
tree | 59849990fd551e588919ce37ee92d35cf27fcb28 /src | |
parent | 7b65a0101fc167a9be0ec8e8e4e0742f16b9e3ed (diff) |
Skip invalid allowed modes in oper block (bug #64)
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |