summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-02-26 15:40:22 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-02-26 15:40:22 +0100
commita5c00b1548d7c8fc89358c26901fa534f7836cc1 (patch)
treef309797539a83a355a1c06b6c522f3ee0c46ccc1 /src/coremods
parent42b7f65a06e9307bf18deff2837535730b895d4a (diff)
Return ModResult from the OnSendWhoLine hook
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_who.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/coremods/core_who.cpp b/src/coremods/core_who.cpp
index 1bc03c78e..6cccb3634 100644
--- a/src/coremods/core_who.cpp
+++ b/src/coremods/core_who.cpp
@@ -225,9 +225,9 @@ void CommandWho::SendWhoLine(User* user, const std::vector<std::string>& parms,
wholine.append(" :0 " + u->fullname);
- FOREACH_MOD(OnSendWhoLine, (user, parms, u, memb, wholine));
-
- if (!wholine.empty())
+ ModResult res;
+ FIRST_MOD_RESULT(OnSendWhoLine, res, (user, parms, u, memb, wholine));
+ if (res != MOD_RES_DENY)
whoresults.push_back(wholine);
}