From fce6169f4e134a99dbb19997337b1bb250889147 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 22 Oct 2016 16:43:18 -0400 Subject: Various codestyle cleanup in most of the core modules --- modules/hostserv/add.cpp | 2 ++ modules/hostserv/list.cpp | 2 ++ modules/hostserv/request.cpp | 2 ++ 3 files changed, 6 insertions(+) (limited to 'modules/hostserv') diff --git a/modules/hostserv/add.cpp b/modules/hostserv/add.cpp index 240324470..f9388c975 100644 --- a/modules/hostserv/add.cpp +++ b/modules/hostserv/add.cpp @@ -51,7 +51,9 @@ class CommandHSAdd : public Command size_t a = rawhostmask.find('@'); if (a == Anope::string::npos) + { host = rawhostmask; + } else { user = rawhostmask.substr(0, a); diff --git a/modules/hostserv/list.cpp b/modules/hostserv/list.cpp index cbb69aa85..8659675d4 100644 --- a/modules/hostserv/list.cpp +++ b/modules/hostserv/list.cpp @@ -120,7 +120,9 @@ class CommandHSList : public Command } if (!key.empty()) + { source.Reply(_("Displayed records matching key \002{0}\002 (count: \002{1}\002)."), key, display_counter); + } else { if (from) diff --git a/modules/hostserv/request.cpp b/modules/hostserv/request.cpp index 47914ee0e..3cae04b8a 100644 --- a/modules/hostserv/request.cpp +++ b/modules/hostserv/request.cpp @@ -158,7 +158,9 @@ class CommandHSRequest : public Command size_t a = rawhostmask.find('@'); if (a == Anope::string::npos) + { host = rawhostmask; + } else { user = rawhostmask.substr(0, a); -- cgit