From 312d49abb008dccf9871b663decaa1bacf18c20a Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 11 Aug 2006 11:06:40 +0000 Subject: Move all of the xline stuff into class XLineManager, make an instance of it in class InspIRCd and use it (eliminates another extern) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4878 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/userprocess.cpp') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 565b7df05..2a4f57b93 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -151,8 +151,8 @@ void InspIRCd::ProcessUser(userrec* cu) { this->WriteOpers("*** Excess flood from %s",current->GetIPString()); log(DEFAULT,"Excess flood from: %s",current->GetIPString()); - add_zline(120,this->Config->ServerName,"Flood from unregistered connection",current->GetIPString()); - apply_lines(APPLY_ZLINES); + XLines->add_zline(120,this->Config->ServerName,"Flood from unregistered connection",current->GetIPString()); + XLines->apply_lines(APPLY_ZLINES); } return; @@ -168,8 +168,8 @@ void InspIRCd::ProcessUser(userrec* cu) { this->WriteOpers("*** Excess flood from %s",current->GetIPString()); log(DEFAULT,"Excess flood from: %s",current->GetIPString()); - add_zline(120,this->Config->ServerName,"Flood from unregistered connection",current->GetIPString()); - apply_lines(APPLY_ZLINES); + XLines->add_zline(120,this->Config->ServerName,"Flood from unregistered connection",current->GetIPString()); + XLines->apply_lines(APPLY_ZLINES); } return; @@ -202,8 +202,8 @@ void InspIRCd::ProcessUser(userrec* cu) } else { - add_zline(120,this->Config->ServerName,"Flood from unregistered connection",current->GetIPString()); - apply_lines(APPLY_ZLINES); + XLines->add_zline(120,this->Config->ServerName,"Flood from unregistered connection",current->GetIPString()); + XLines->apply_lines(APPLY_ZLINES); } return; -- cgit v1.3.1-10-gc9f91