diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-07-01 20:35:16 +0200 |
---|---|---|
committer | Robin Burchell <robin+git@viroteck.net> | 2012-07-01 21:06:55 +0200 |
commit | 37d7160b3a2434abcb4b39898bb86fa314fc3e5b (patch) | |
tree | 21cb2586070c1371c57b686eb2395b7a3c70ac77 /src/modules/m_dccallow.cpp | |
parent | c38e2fcdc8404f7a6505f2f9c7c6fc26edf5ad87 (diff) |
m_callerid, m_dccallow Fix crash caused by allowing unregistered users and SIDs to be on callerid/dccallow lists
Diffstat (limited to 'src/modules/m_dccallow.cpp')
-rw-r--r-- | src/modules/m_dccallow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 0c1c5a185..0ec8fb395 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -102,7 +102,7 @@ class CommandDccallow : public Command std::string nick = parameters[0].substr(1); User *target = ServerInstance->FindNickOnly(nick); - if (target) + if ((target) && (!IS_SERVER(target)) && (!target->quitting) && (target->registered == REG_ALL)) { if (action == '-') |