From 880ae2dab166b4c8e72bc85a925c548f3d451a63 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 4 Nov 2007 23:04:47 +0000 Subject: Integrate K/Gline into the bancache system by making some modifications to DefaultApply method. This means any type of XLine that uses DefaultApply can hook into the bancache system and add positive hits quickly and easily with no modification, which is neat. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8538 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/xline.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/xline.h b/include/xline.h index fcbd9134d..91a7e57fb 100644 --- a/include/xline.h +++ b/include/xline.h @@ -35,8 +35,9 @@ class CoreExport XLine : public classbase /** Default 'apply' action. Quits the user. * @param u User to apply the line against * @param line The line typed, used for display purposes in the quit message + * @param bancache If true, the user will be added to the bancache if they match. Else not. */ - void DefaultApply(User* u, const std::string &line); + void DefaultApply(User* u, const std::string &line, bool bancache); public: -- cgit v1.2.3