X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_codepage.cpp;h=1e0a248e06a9edfcfffb55fb3f16395a3724e662;hb=9ebda853f5bc470858501897442610699a5fd5de;hp=9fd012ffe80ab118f064fdf5ada264622c2695c4;hpb=34e33342d548f3ecaff791f526786b39318b7437;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_codepage.cpp b/src/modules/m_codepage.cpp index 9fd012ffe..1e0a248e0 100644 --- a/src/modules/m_codepage.cpp +++ b/src/modules/m_codepage.cpp @@ -2,7 +2,6 @@ * InspIRCd -- Internet Relay Chat Daemon * * Copyright (C) 2020 Sadie Powell - * Copyright (C) 2014 Googolplexed * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -134,7 +133,7 @@ class ModuleCodepage unsigned char begin = tag->getUInt("begin", tag->getUInt("index", 0), 1, UCHAR_MAX); if (!begin) throw ModuleException(" tag without index or begin specified at " + tag->getTagLocation()); - + unsigned char end = tag->getUInt("end", begin, 1, UCHAR_MAX); if (begin > end) throw ModuleException(" must be lower than at " + tag->getTagLocation());