From cf4439ac5c5e5f57aba2c998ee63b9b27ec17d69 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 19 Aug 2007 20:14:05 +0000 Subject: Add as per feature bug #338 - combined with the last feature, this allows per-oper specific maxchans values, and even the same for non-opers! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7761 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index eb676b06a..4854849ad 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1040,6 +1040,7 @@ void userrec::CheckClass(const std::string &explicit_class) this->threshold = a->GetThreshold(); this->sendqmax = a->GetSendqMax(); this->recvqmax = a->GetRecvqMax(); + this->MaxChans = a->GetMaxChans(); } void userrec::FullConnect() @@ -1853,6 +1854,10 @@ void userrec::SplitChanList(userrec* dest, const std::string &cl) } } +unsigned int userrec::GetMaxChans() +{ + return this->MaxChans; +} /* looks up a users password for their connection class (/ tags) * NOTE: If the or tag specifies an ip, and this user resolves, -- cgit v1.2.3