diff options
| author | 2015-04-20 17:40:12 +0200 | |
|---|---|---|
| committer | 2015-04-20 17:40:12 +0200 | |
| commit | 8f5efbc7aa33b792e02d01e3288f553e6e98ccaa (patch) | |
| tree | 54a67ebd11fac07d630fa03acad7797b2f781e80 /src/modules/m_dccallow.cpp | |
| parent | Remove exception handling from StreamSocket methods calling IOHooks (diff) | |
| parent | Release v2.0.19 (diff) | |
| download | inspircd++-8f5efbc7aa33b792e02d01e3288f553e6e98ccaa.tar.gz inspircd++-8f5efbc7aa33b792e02d01e3288f553e6e98ccaa.tar.bz2 inspircd++-8f5efbc7aa33b792e02d01e3288f553e6e98ccaa.zip | |
Merge insp20
Diffstat (limited to 'src/modules/m_dccallow.cpp')
| -rw-r--r-- | src/modules/m_dccallow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 2b8d1306c..f011fa449 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -318,6 +318,9 @@ class ModuleDCCAllow : public Module while (ss >> buf) tokens.push_back(buf); + if (tokens.size() < 2) + return MOD_RES_PASSTHRU; + irc::string type = tokens[1].c_str(); ConfigTag* conftag = ServerInstance->Config->ConfValue("dccallow"); @@ -325,6 +328,9 @@ class ModuleDCCAllow : public Module if (type == "SEND") { + if (tokens.size() < 3) + return MOD_RES_PASSTHRU; + std::string defaultaction = conftag->getString("action"); std::string filename = tokens[2]; |
