summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_svshold.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp
index 44206d277..340d9487b 100644
--- a/src/modules/m_svshold.cpp
+++ b/src/modules/m_svshold.cpp
@@ -66,6 +66,12 @@ class cmd_svshold : public command_t
/* syntax: svshold nickname time :reason goes here */
/* 'time' is a human-readable timestring, like 2d3h2s. */
+ if (!ServerInstance->ULine(user->server))
+ {
+ /* don't allow SVSHOLD from non-ulined clients */
+ return CMD_FAILURE;
+ }
+
if (pcnt == 1)
{
SVSHoldMap::iterator n = HoldMap.find(parameters[0]);