diff options
Diffstat (limited to 'src/xline.cpp')
-rw-r--r-- | src/xline.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index 7ce6c3f0a..c964ec962 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -158,7 +158,13 @@ bool XLineManager::AddLine(XLine* line, User* user) return false; /*ELine* item = new ELine(ServerInstance, ServerInstance->Time(), duration, source, reason, ih.first.c_str(), ih.second.c_str());*/ - pending_lines.push_back(line); + XLineFactory* xlf = GetFactory(line->type); + if (!xlf) + return false; + + if (xlf->AutoApplyToUserList(line)) + pending_lines.push_back(line); + lookup_lines[line->type][line->Displayable()] = line; line->OnAdd(); |