#include "inspircd.h"
#include "ssl.h"
-/* $ModDesc: Provides support for unreal-style channel mode +z */
+/* $ModDesc: Provides channel mode +z to allow for Secure/SSL only channels */
/** Handle channel mode +z
*/
ModResult OnCheckBan(User *user, Channel *c, const std::string& mask)
{
- if (mask[0] == 'z' && mask[1] == ':')
+ if ((mask.length() > 2) && (mask[0] == 'z') && (mask[1] == ':'))
{
UserCertificateRequest req(user, this);
req.Send();
Version GetVersion()
{
- return Version("Provides support for unreal-style channel mode +z", VF_VENDOR);
+ return Version("Provides channel mode +z to allow for Secure/SSL only channels", VF_VENDOR);
}
};