diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-25 14:01:03 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-25 14:01:03 +0000 |
commit | 03bf72c331d93c29d689df216e8bf8eb3a6b4266 (patch) | |
tree | 7d81dcb5561ddcd4bcc135a2760cb7de2e1bdf25 | |
parent | a338648303c208517a3261d9aa3908472a2546e3 (diff) |
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
-rw-r--r-- | src/modules/m_svshold.cpp | 6 |
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]); |