From 03bf72c331d93c29d689df216e8bf8eb3a6b4266 Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 25 May 2007 14:01:03 +0000 Subject: Don't allow SVSHOLD from a non-ulined client. Thanks click. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7133 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_svshold.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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]); -- cgit v1.2.3