From 776207ba67e6065611d9ba4e2dec603062cb220f Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 14 Sep 2015 12:35:26 -0400 Subject: [PATCH] Don't allow suspended users to login to webcpanel --- modules/webcpanel/pages/index.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/webcpanel/pages/index.cpp b/modules/webcpanel/pages/index.cpp index 1b136c7fb..7b755cfe8 100644 --- a/modules/webcpanel/pages/index.cpp +++ b/modules/webcpanel/pages/index.cpp @@ -30,6 +30,12 @@ class WebpanelRequest : public IdentifyRequest return; } + if (na->nc->HasExt("NS_SUSPENDED")) + { + this->OnFail(); + return; + } + Anope::string id; for (int i = 0; i < 64; ++i) {