diff options
author | Adam <Adam@anope.org> | 2015-09-14 12:35:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2015-09-14 12:35:26 -0400 |
commit | 776207ba67e6065611d9ba4e2dec603062cb220f (patch) | |
tree | 084a2122e0d3a2c2d8fa9031af129e314721baa1 | |
parent | 2f5e880e57be3d4881c47da991334c516e76ffaf (diff) |
Don't allow suspended users to login to webcpanel
-rw-r--r-- | modules/webcpanel/pages/index.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |