From c1aa1d5a2b34b6a3339a157af3031b553fb8dd05 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 17 Mar 2021 17:26:55 +0000 Subject: Add a subclass of ExtensionItem exclusively for booleans. --- src/modules/m_swhois.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_swhois.cpp') diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index 562c4a312..fc8a315cb 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -38,7 +38,7 @@ enum class CommandSwhois : public Command { public: - IntExtItem operblock; + BoolExtItem operblock; StringExtItem swhois; CommandSwhois(Module* Creator) : Command(Creator, "SWHOIS", 2, 2) @@ -128,7 +128,7 @@ class ModuleSWhois if (!swhois.length()) return; - cmd.operblock.Set(user, 1); + cmd.operblock.Set(user); cmd.swhois.Set(user, swhois); } -- cgit v1.3.1-10-gc9f91