diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-19 22:41:01 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-19 22:41:01 +0000 |
commit | f13826a95e9852ddbde748997970bc65d9bcb175 (patch) | |
tree | a0b56dae51378f04413cfae154a96e65d89b1e53 | |
parent | 18a67e4a2a6131b9694b9bc960ba50c55a50a43e (diff) |
Someone doesnt validate their input.... ;-p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3741 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_remove.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index 5cbc38499..242aaefb3 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -60,10 +60,16 @@ class cmd_remove : public command_t userrec* target = Srv->FindNick(std::string(parameters[0])); /* And the channel we're meant to be removing them from */ chanrec* channel = Srv->FindChannel(std::string(parameters[1])); + + /* Fix by brain - someone needs to learn to validate their input! */ + if (!target || !channel) + return; + /* And see if the person calling the command has access to use it on the channel */ std::string privs = Srv->ChanMode(user, channel); /* Check what privs the person being removed has */ std::string targetprivs = Srv->ChanMode(target, channel); + int tlevel; int ulevel; int n = 2; |